Developer forum

Forum » PIM » Create attribute duplicates with linked values for filtering

Create attribute duplicates with linked values for filtering

Davy Capiau
Reply

Hi,

We have a situation where we want to recreate certain attributes that will only be used for filtering. 

Is there a way to link one attribute's values to another? I was thinking about creating a custom field type with the concatenation provider. 

Original:

  • colour
    • red
    • green

Linked copy

  • colour_filter
    • red
    • green

Kr Davy


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

That is not possible. If you want to do something like this you should create a extender field on the index with the values concatenated - and then when rendering them in the facet options, you can do some frontend magic.

 

You must be logged in to post in the forum