Real World Examples
<form method="get" action="{site_url}support/search">
<select name="support-add-on">
<option></option>
</select>
<select name="support-type">
<option></option>
</select>
<input type="text" name="keywords" id="keywords" value="{if url:param:keywords}{url:param:keywords}{/if}" />
</form>
{if url:param:keywords || url:param:support-add-on || url:param:support-type}
<ul>
{exp:dexter:search index="{dexter_env}_support" term='"{url:param:keywords}"' entry_ids_only="yes"}
{search_filters}
{
"limit": 50,
"sort": [
"entry_date:desc"
],
"filter": [
{if url:param:support-add-on && url:param:support-type}
"categories = \"{url:param:support-add-on}\" AND categories = \"{url:param:support-type}\""
{if:elseif url:param:support-add-on}
"categories = \"{url:param:support-add-on}\""
{if:elseif url:param:support-type}
"categories = \"{url:param:support-type}\""
{/if}
]
}
{/search_filters}
{if no_results}
<li>No results found.</li>
{/if}
{exp:channel:entries
entry_id="{entry_ids}"
dynamic="no"
status="open|resolved|closed|backlog|with-customer|to-do"
}
{partial_tickets_list}
{/exp:channel:entries}
{/exp:dexter:search}
</ul>
{if:else}
<div>
<p>Please enter search criteria.</p>
</div>
{/if}Last updated