Just looking for a pointer in sorting out a search form.
I am implementing a property search form.
I have a search field and a couple of range filters, and a grouped category drop down.
See here...
{exp:low_search:form collection="cottages" class="walk-search-form" search_mode="all" query="{segment_3}" result_page="cottages/results"}
<label>Search for a cottage:</label>
<input type="text" name="keywords" id="keywords" class="span5" />
<label>Choose a county:</label>
<select name="search:cottage_county">
<option value="">Filter by Category</option>
{exp:channel:categories cache="yes" refresh="60" channel="cottages" disable="category_fields" style="linear"}
{if parent_id == '0'}{if count != '1'}</optgroup>{/if}<optgroup label="{category_name}">{/if}
{if parent_id != '0'}<option value="{category_id}">{category_name}</option>{/if}
{/exp:channel:categories}
</select>
<label>Sleeps a Max of:</label>
<select name="range:cottages_sleeps_max" class="span2">
<option value="">All</option>
<option value="1;">1 or more</option>
<option value="2;">2 or more</option>
<option value="3;">3 or more</option>
<option value="4;">4 or more</option>
<option value="5;">5 or more</option>
<option value="6;">6 or more</option>
<option value="7;">7 or more</option>
<option value="8;">8 or more</option>
</select>
<label>No of Beds:</label>
<select name="range:cottages_beds" class="span2">
<option value="">All</option>
<option value="1;">1 or more</option>
<option value="2;">2 or more</option>
<option value="3;">3 or more</option>
<option value="4;">4 or more</option>
<option value="5;">5 or more</option>
<option value="6;">6 or more</option>
<option value="7;">7 or more</option>
<option value="8;">8 or more</option>
</select>
<button class="btn btn-large btn-block btn-blue" type="submit">Search</button>
{/exp:low_search:form}
So far the search field and the range dropdowns both work.
The category dropdown displays correctly, i.e.
Parent Cat
-child 1
-child 2
Parent Cat 2
-child 1
But when I perform a search on it, it returns every entry.
The other thing is that I want the category, and range values to remain selected once the search has been performed.
Low helped me before in a similar search form, but i've tried everything that was suggested there, but as this is a slightly different scenario, they don't seem to be working :(
UPDATE
OK I seem to have the category search working.
Changed <select name="search:cottage_county">
to <select name="category:cottage_county">
This returns the right results, but is there a way for me to display the name of the category that they selected in the results page?