Hi mark,
Great addon, thank you for creating it. I'm having a little issue with the {if no_results} tags. I've got:
`{exp:search_fields
search:title="{get:search}"
channel="country"
min_length="3"
parse="inward"}
{exp:channel:entries
channel="country"
entry_id="{search_results}"
dynamic="no"
show_future_entries="yes"
}
<a class="country" href="{site_url}country/{url_title}">
<h2>{title}</h2>
</a>
{/exp:channel:entries}
{if no_results}
<p class="intro">Sorry, no matches were found for ‘<em></em>’.</p>
{/if}
{/exp:search_fields}`
But sadly when no results are found I'm not receiving the no results message, just an empty template. Do you have any idea what I'm doing wrong? Your example says to use an embed - is this required for the no results to work?
Kind regards,
Ben
Hi mark,
Great addon, thank you for creating it. I'm having a little issue with the {if no_results} tags. I've got:
`{exp:search_fields
search:title="{get:search}"
channel="country"
min_length="3"
parse="inward"}
{/exp:search_fields}`
But sadly when no results are found I'm not receiving the no results message, just an empty template. Do you have any idea what I'm doing wrong? Your example says to use an embed - is this required for the no results to work?
Kind regards,
Ben