PDA

View Full Version : expand only first 2 levels


BlueEgg
07-22-07, 12:35 AM
With help from Dan (Kemper), I have added the following to my category and product templates:
<mvt:item name="cattree" param="open" />

However, I have one category that is 2 deep and I do not want the 3rd level open. Is there a way to exclude that category from the open param?

I added a line in the category tree template to specifically reference the category I did not want expanded, but then everything was listed twice.

Any suggestions?

Thank you.

Robin
www.theskinsavers.com

adam2003w
07-23-07, 07:54 PM
Check the Sebenza knowlege base for that module. They have a way to show only the first two levels of the cat tree.

Beyond that you'll need the Ultimate Category Tree module (I forget what it's called).

Also, I wrote a php script to expand the menu two levels automatically and then expand further when a category is selected. You can see an example here:

http://www.love2learnstore.com/homeschool/

BlueEgg
07-24-07, 12:25 AM
Thank you. I am using Sebenza's templates for category tree, catagory and product. After some additional searching and testing, I got the category tree to almost work as I wanted. Two levels are expanded, but when a category is selected it does not expand further. Right now I only have one catogory with sub-categories so I may just do a menu within the category header.

Thank you again for pointing me in the right direction.

Robin
www.theskinsavers.com