New Zenner
- Join Date:
- Sep 2007
- Posts:
- 3
- Plugin Contributions:
- 0
Category box list only top and 2nd level
Hi!
is there a way to restrict the Category Box to show only Top and 2nd level category?
which file should i modify?
thanks in advance.
Views: 1,353
New Zenner
Hi!
is there a way to restrict the Category Box to show only Top and 2nd level category?
which file should i modify?
thanks in advance.
Black Belt
Do you want it to always show all top & first subcats? Or regular function except never show deeper than the current first subcat?
If the former, I would suggest to start with the Expanded Category List mod in Downloads, which will show all subcats all the time.
Then, in either case, you can modify /includes/templates/your_template/sideboxes/tpl_categories.php to filter out any lower level subcats.
The grouping categories, using subcategories or filter on attributes thread has discussion and thread links related to this, though your question is somewhat different. It will take a bit of experimentation to get it right, but I think the code to do this will be fairly simple.
Tell staff why this post should be reviewed.