All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low search multiple filters

Rafees Poovathingal 21 Apr 2014 07:47 question, complete

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}
  1. {title}

  2. {if count == total_results}
{/if}
{if no_results}No search results{/if}
{/exp:low_search:results}

Replies

  1. 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.