I was wondering if there was a way or method available in that package that would allow me to find all nodes that have been assigned to a category which exists under a specific parent category.
So for example, take the following category tree:
Parent 1 - Sub Cat 1 - Sub Cat 2 - Sub Cat 3 Parent 2 - Sub Cat 1
I want to find all nodes that have been assigned to any sub-category that exist under Parent 1 or Parent 2
The best solution would be to index with Examine, such that when a node is saved the ids of any selected categories, and potentially their parents too are indexed with the node.
Alternativily how about using the Picker Relations datatype to automatically wire-up a reverse index - then you can iterate through each of the Parents / Sub Cats gatehering all related nodes.
List all nodes within selected categories under parent category
I was wondering if there was a way or method available in that package that would allow me to find all nodes that have been assigned to a category which exists under a specific parent category.
So for example, take the following category tree:
Parent 1
- Sub Cat 1
- Sub Cat 2
- Sub Cat 3
Parent 2
- Sub Cat 1
I want to find all nodes that have been assigned to any sub-category that exist under Parent 1 or Parent 2
Any ideas??
Hi Graham,
The best solution would be to index with Examine, such that when a node is saved the ids of any selected categories, and potentially their parents too are indexed with the node.
Alternativily how about using the Picker Relations datatype to automatically wire-up a reverse index - then you can iterate through each of the Parents / Sub Cats gatehering all related nodes.
HTH,
Hendy
Hi Hendy,
Thanks for the reply. I don't have much experience with Examine, do you have any resource links for how to use it and set it up?
Graham
is working on a reply...