Page 1 of 1

Category Tree Menu Title ?

Posted: Mon Apr 02, 2007 12:36 pm
by marcolino
I'm testing the "Category Tree Menu" plugin, it seems very useful for me.
Just one of question: I can't have the title ("Categorie") displayed on the title of the plugin in the sidebar (You can check my blog at "http://www.koinesistemi.it/blog/molinette/", sorry it's italian ...), whilst I have it displayed as a "subtitle", _inside_ the plugin content, before the categories names.
Is it by design, is it a bug, or do I miss something ?

Thanks in advance for Your attention !

Marcolino

Re: Category Tree Menu Title ?

Posted: Mon Apr 02, 2007 12:59 pm
by garvinhicking
Hi!

Are you using version 1.9 of this plugin? Usually the title you configured in the plugin'S configuration there should show up as the top title.

Sadly, a link "Categories" would then also show up as the heading of the treenode itself.

The plugin was developed with the default theme in mind, so in yours it does look a bit odd.

You could remedy this situation by editing the serendipity_plugin_category_dhtml_menu.php file and remove this line:

Code: Select all

$cat_nodes[0] = new HTML_TreeNode(array('text'=>'<span class="serendipitySideBarTitle">'.$this->get_config('title', $title).'</span>'));
HTH,
Garvin

Re: Category Tree Menu Title ?

Posted: Mon Apr 02, 2007 3:06 pm
by marcolino
Hi, Gravin
thank You so much !!! I was using 1.2 ... ;-(
However, after removing the line You suggested, I had to add a line like this one:

Code: Select all

$cat_nodes[0] = new HTML_TreeNode();
, otherwise a PHP syntax error would emerge ... Now there is a blank line, instead of the 'inner' title, but it is not too annoying ...

Thank You so much again !
Best regards.


garvinhicking wrote:Hi!

Are you using version 1.9 of this plugin? Usually the title you configured in the plugin'S configuration there should show up as the top title.

Sadly, a link "Categories" would then also show up as the heading of the treenode itself.

The plugin was developed with the default theme in mind, so in yours it does look a bit odd.

You could remedy this situation by editing the serendipity_plugin_category_dhtml_menu.php file and remove this line:

Code: Select all

$cat_nodes[0] = new HTML_TreeNode(array('text'=>'<span class="serendipitySideBarTitle">'.$this->get_config('title', $title).'</span>'));
HTH,
Garvin