Hi there.
I set up two category dropdown menu’s using the User Guide’s sample on this page: http://ellislab.com/expressionengine/user-guide/modules/channel/categories.html#dropdown
I’ve been able to get it to mostly work, but being a newb to EE I’m still trying to figure things out. If anyone has any advice to get this working, I’d be very appreciative.
My code is as follows:
<form name="catmenu" action="location=document.catmenu.selcat.options[document.catmenu.selcat.selectedIndex].value;">
<select name="selcatrest">
<option value="">Restaurant Type</option>
{exp:channel:categories channel="places" style="linear" category_group="4"}
<option value="{path='channel'}">{category_name}</option>
{/exp:channel:categories}
</select>
<select name="selcatcuisine">
<option value="">Cuisine Type</option>
{exp:channel:categories channel="places" style="linear" category_group="5"}
<option value="{path='channel'}">{category_name}</option>
{/exp:channel:categories}
</select>
<input id="search"type="submit" value="Search" />
</form>I know that the form action is wrong because I need it to search both <select> tags. That action is taken from the select onchange referenced in the User Guide link above. I just guessed since adding a search button that it would go in the form action.
Thank in advance for your help!
Tre Stange