Page 1 of 1

Dropdown list for categories

Posted: Sun Oct 02, 2005 4:04 pm
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:

Re: Dropdown list for categories

Posted: Tue Oct 04, 2005 3:49 pm
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