Low search multiple filters
Hi
channel Project having three relation ship with other channels say
service
sector
location. and these are the filters (select box) in front end. each selection page is refreshing.
filtering is happening perfect code is give bleow. my problem is how do i keep the filter values selected in select box ?.
i want to retain the search keyword on select box
Search page filters
{exp:low_search:form result_page="search/results" form_id='search'}
All Service
{exp:channel:entries channel="services" dynamic="no"}
{title}
{/exp:channel:entries}
All Sector
{exp:channel:entries channel="sectors" dynamic="no"}
{title}
{/exp:channel:entries}
All Location
{exp:channel:entries channel="location" dynamic="no"}
{title}
{/exp:channel:entries}
{/exp:low_search:form}
Output
{exp:low_search:results query="{segment_3}" limit="10"}
{if count == 1}
- {/if}
- {title}
{if count == total_results}
{if no_results}No search results{/if}
{/exp:low_search:results}
Replies
Low 21 Apr 2014 12:18
Add query="{segment_3}" to the Form tag and then use conditionals in the channel:entries loops to add the selected/checked-attribute.