Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Need help with searching Categories

$
0
0

Hi - I am struggling to find a solution to a category problem.  

 
Perhaps I am over thinking this. I need to display a navigation menu in tabs so that as you tab through the hierarchy you can see the categories in the hierarchy both above and below where you currently are. 

 

 

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 ! 

 

 

 

 


Viewing all articles
Browse latest Browse all 13200

Trending Articles