I want an advanced search where the user can either enter keywords or choose a category from a drop-down menu. Code is below. I’m being prompted to enter a keyword when the field is left empty, “You did not submit a search term.”
I see many people asking why this can’t be done. Why can’t this be done?
Any suggestions to make this work?
{exp:search:advanced_form result_page="resultspage" search_in="weblog" status="open" dynamic="off"}
<input type="text" class="input" maxlength="100" size="40" name="keywords" style="width:90%;" />
<select name="search_in">
{exp:weblog:category_archive weblog="weblog" style="linear" show_empty="no" status="open"}
{categories}
<option value="{path=mypath}" >{category_name}</option>
{/categories}
{/exp:weblog:category_archive}
</select>
<input type='submit' value='Search' class='submit' />
{/exp:search:advanced_form}