List sub categories with more than one main category
I'm trying to create a product catalog that has main categories, sub categories and products...
Sub categories can be under more than one main category and a product can be under more than one sub category.
I have set up a doc type for my sub categories where I have added a data type (Ultimate Picker - CheckBoxList). This let's me choose what main categories a sub category belongs to when I create it.
Now I would like XSLT to list the sub categories...
This will show all the sub categories that has the main category (ID 1137) selected... but only that ID. So a sub category that has more than that one main category selected will not show.
How do I get it to show sub categories that among others have the specific main category ID?
List sub categories with more than one main category
I'm trying to create a product catalog that has main categories, sub categories and products...
Sub categories can be under more than one main category and a product can be under more than one sub category.
I have set up a doc type for my sub categories where I have added a data type (Ultimate Picker - CheckBoxList). This let's me choose what main categories a sub category belongs to when I create it.
Now I would like XSLT to list the sub categories...
This will show all the sub categories that has the main category (ID 1137) selected... but only that ID. So a sub category that has more than that one main category selected will not show.
How do I get it to show sub categories that among others have the specific main category ID?
/cheers
Hi Bent,
Try using the Split() extension to get a
<value>
node for every category in the list - then it's easier to do the comparison:Hope that helps,
/Chriztian
That did the trick!
Thank you so very much!
/Bent
is working on a reply...