Page 1 of 1

Categories plugin with expandable categories

Posted: Mon Jan 29, 2007 11:14 am
by Bernard
Hello there !

is there a categories plugin that only shows subcategories when you click on the parent ?

the normal plugin shows all but that is too much for my purposes ..

greetings

Re: Categories plugin with expandable categories

Posted: Mon Jan 29, 2007 1:03 pm
by garvinhicking
Hi!

You could try the "Category Tree Menu"? This uses the PEAR HTML_Tree Menu which you also need to install. You might want to search this forum for "category tree", this should give you some results of how to install it.

Best regards,
Garvin

Posted: Mon Jan 29, 2007 1:42 pm
by Bernard
Thank you for your fast reply .. before I install it: Is that a javascript tree like windows explorer ?

I do not prefer this tree view. I would like to click on the main level categories and after reloading the page see the subcategories ..

Posted: Mon Jan 29, 2007 1:53 pm
by garvinhicking
Hi!

Yes, it is a javascript tree! I thought that was what you wanted. If you want a "per click" menu, you could enable the smarty templating of the plugin and create a plugin_categories.tpl plugin that only shows children.

I believe nobody has yet done so and shared his results yet, so it might be a bit of work to get that started.

I must admit I don't see that much sense in that and would recommend the javascript tree view instead. Clicking and reloading the whole page to browase categories will yield a high performance impact on your blog, as the pages would also need to be recreated everytime when someone just wants to browse a category?!

Best regards,
Garvin

Posted: Mon Jan 29, 2007 8:28 pm
by Bernard
Thank you ..

I don't think so. Nearly every online shop uses this kind of category-navigation. I have a category for every user (over 100) as subcategories to "users" ... I will try your solution with smarty.

Anyways I tried the tree menu and installed the pear package from here:
http://board.s9y.org/viewtopic.php?t=82 ... egory+tree

I get this javascript error: TreeMenu is not defined. The pear php file is included. Do I need to do anything else ?

Thank you in forward. Greetz.-

Posted: Mon Jan 29, 2007 8:44 pm
by Bernard
Ok who knows to read is really in advantage. :D Solved it.

For other people who maybe get stuck like me:

The pear package must be downloaded manually. After that specify the path to the js and the images.