We have a channel with categories that we are filtering on using Low Search, some of the category groups in which assignments are made for an entry are exclusive, i.e. the entry can only ever belong to one category in that group (Country for example).
We need to let users toggle categories on and off to filter results (Show me all mills in 'England' which are 'Water' mills) but we do not want to allow a user to apply multiples in certain categories (Show me all mills in 'England AND Scotland' which are 'Water' mills).
{exp:low_search:filters query="{segment_3}"}
<ul>
<li>Countries
{exp:gwcode_categories
id="FilterCountries"
group_id="9"
show_empty="no"
orderby="cat_name"
parse="inward"
style="nested"
}
<li {if cat_id IN ({low_search_category})}class="current_filter"{/if}>
<a href="{low_search:url result_page='/results' toggle:category='{cat_id}'}">{cat_name}</a>
</li>
{/exp:gwcode_categories}
</li>
We then repeat the list item for each category group we are using, so we have subsequent groups as per the above for 'Power Sources', 'Rivers' and 'Types'. Some of these (Type for example) may have more than one category assignment so we need a solution that allows us to restrict the additive toggle 'per group'.
Any ideas?