I have a simple search form on my legacy site, running EE 1.x. The site is a magazine that publishes editions, and has an archive that quickly filters by two dropdowns (Month and Year). The idea is that you can quickly jump to the January 2012 edition and see all the articles. Here’s the simplified search code (month only):
{exp:search:simple_form channel="editions" result_page="archives/results" where="exact" weblog="editions"}
<select name="month" class="month">
<option value="">-month-</option>
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="September">September</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select>
<input type="hidden" name="keywords" id="keywords2" value="" />
<input type="image" src="/images/btn-go.jpg" name="Go" class="submit" />
{/exp:search:simple_form}ok- all’s well and good. EXCEPT!!! They run one edition per year that spans 2 months, so the edition date is July (this is a custom field, date format), but the edition is called July/August. SOOOOO when the user searches for August, they get nothing… What can I do either in the content or the template to allow for the multiple search? I could just have the value for August be “July”, but would prefer a more elegant solution. Thanks!