Re: Simple Category Tree

Originally Posted by
Noella
I've been trying to find a way to display only the subcategories in the sidebox of the corresponding Parent Categories when that Category is selected on the Horizontal Tab. I thought I got it working until I clicked on the other categories but it still displays Subcategories of the First category instead of its own.
I have this code in the Category Sidebox template:
$content .= $_SESSION['category_tree']->build_category_string('', 'li', '<br />', 1, 1);
Oh, first, if you use li for the the child then you need to use ul for the parent cats.
Also, if you need to display subcats of the current cat you need to pass that parent cat id into it *using $cPath or $_GET['cPath']
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Bookmarks