Dropdown list for categories

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
aacircle
Regular
Posts: 50
Joined: Sun Oct 02, 2005 11:04 am
Contact:

Dropdown list for categories

Post by aacircle »

Hello,

Does anyone know if there is a way to have the categories displayed as a dropdown list? I don't like the idea of having heaps of category links displayed one after the other taking up too much room.

Thanks for any help you can give. :wink:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Dropdown list for categories

Post by garvinhicking »

Yes, you could build your own plugin by copying the "serendipity_plugin_categories" plugin frmo the include/plugins_internal.inc.php file to it's own. Put the whole class inside a file like plugins/serendipity_plugin_mycategories/serendipity_plugin_mycategories and then rename the plugin class name to "serendipity_plugin_mycategories".

Then you can adapt the HTML output to put everything inside a dropdown. You will then need javascript to go to the appropriate URL for each category.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply