Hi - I am struggling to find a solution to a category problem.
Conceptually I found an architectural solution on Sitepoint called, Modified Preorder Tree Traversal - but it is quite complex and I was hoping for something a little easier.
In simple terms I need to be able to search and display all the categories and sub categories going up or down the category hierarchy. It could be as much as 5 levels deep.
My need is 3 fold:
1 - starting at the root I have to find all the descendants.
2 - if you start at the bottom of the hierarchy, I need to find all the ancestors.
3 - Worst of all ... if you start half way down the hierarchy, I need to display both all the ancestors and all the descendants.
Does anyone have some advice or resources I should consider ??
MANY MANY Thanks !