Help - Search - Members - Calendar
Full Version: Pulldown Menu for Categories
Movable Type Community Forum > Additional Resources > Tips and Tricks
kenn3dy
I'd like to have a pulldown menu from which you can select a category, and see all the entries in it. Creating the dropdown was easy of course, but now I'm stuck... do I have to pass a variable from the menu to the category template so it knows what to display?

Has anyone else tried to do it? Any pointers would be appreciated.

Thanks!

K
Kevin Aylward
Here's the code I use:

CODE
<form>
<select onChange="document.location=options[selectedIndex].value;">
<option value="">By Month...</option>
<MTArchiveList archive_type="Monthly">
<option value="<$MTArchiveLink$>"><$MTArchiveTitle$></option>
</MTArchiveList>
</select>


<select onChange="document.location=options[selectedIndex].value;">
<option value="">By Category...</option>
<MTArchiveList archive_type="Category">
<option value="<$MTArchiveLink$>"><$MTArchiveTitle$></option>
</MTArchiveList>
</select>
</form>
kenn3dy
Great! Thanks for the tip!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.