Finding the parent nodes of Multi-node tree picker selections
I have to make adjustments to a filter for a bunch of items, which are assigned categories via a multi-node tree picker.
The filter sorts by selected CATEGORY, and that works fine. I also need it to sort by CATEGORY PARENT, i.e., if the website's category selection looks like this:
Colors
Green
Blue
Yellow
and the user selects "Colors," I want it to show any items with either "Green", "Blue", or "Yellow" as an applied category, even if the parent category "Colors" cannot be directly applied to the item.
The setup currently has items filtering through a query with something like this code (there are several other variables, but this is where the category list is matched with the selected category being queried and items get populated):
So it successfully makes a list of all the categories pulled from the "Categories Picker" Multi-Node Tree Picker, but I can't see anywhere in that code where I could also include the parents of the selected nodes in the split list that the query value would be checked against.
Finding the parent nodes of Multi-node tree picker selections
I have to make adjustments to a filter for a bunch of items, which are assigned categories via a multi-node tree picker.
The filter sorts by selected CATEGORY, and that works fine. I also need it to sort by CATEGORY PARENT, i.e., if the website's category selection looks like this:
Colors
and the user selects "Colors," I want it to show any items with either "Green", "Blue", or "Yellow" as an applied category, even if the parent category "Colors" cannot be directly applied to the item.
The setup currently has items filtering through a query with something like this code (there are several other variables, but this is where the category list is matched with the selected category being queried and items get populated):
So it successfully makes a list of all the categories pulled from the "Categories Picker" Multi-Node Tree Picker, but I can't see anywhere in that code where I could also include the parents of the selected nodes in the split list that the query value would be checked against.
is working on a reply...