kenn3dy
Aug 29 2003, 10:51 AM
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
Aug 29 2003, 11:19 AM
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
Aug 29 2003, 12:11 PM
Great! Thanks for the tip!