Page 1 of 1

Subcategory style

Posted: Thu Aug 18, 2005 1:39 pm
by Frandy
Hi,

I'd like to display in the category_sidebar subcat titles using a style different than parent cat (for example small font for subcategory and bold font for parent category).
is it possible to do that easily (using the css file ?) ?

thanks a lot

Frandy

Re: Subcategory style

Posted: Thu Aug 18, 2005 3:01 pm
by garvinhicking
Using CSS3 that would be possible, but I think only firefox supports it.

So my suggestion is to take the plugin contents of the include/plugin_internal.inc.php file (the whole class serendipity_category_plugin), copy it into plugins/serendipity_plugin_mycategory/serendipity_plugin_mycategory.php and then make the HTML-changes inside the code there.

The reason why the plugin is not SMARTYfied is because usually users do not need customization for this, and it costs much performance for every smartyfied sidebar plugin to parse.

REgards,
Garvin