I am creating a series of plugins either from scratch or based on existing internal plugins like the archives plugin.
One thing I have changed in this is to create a drop down menu from the archive list instead of a physical list.
I have achieved this through the use of the serendipity_generateCategoryList function:
I am using this above function as I don't want to provide a complete list of categories. Only the ones that have posts. That part of the code works fine.
eg.
Code: Select all
echo '<form name="drop_down_categories"><select><option value="">browse categories</option>';
echo serendipity_generateCategoryList($catArray, array(0), 2,17,1);
echo '</select></form>';To access these categories the URL:
http://<base install>/index.php?/categories/<cat_num>-<catn_name>
My question is how do I use the form method to load the relevant category pages when they are clicked within the drop down ...
I am also a little unsure as to how I use the second array parameter of the function, I know this is important for generating the functionality.
Secondly, and slightly related.
I am using the static page module, and want to provide drop down menu support for certain pages, I think knowing the asnwer to the above would help me with that solution.
Many thanks.