I’m using an embed to keep together all my search templates and I think it may be causing a problem with the {exp:search:keywords} function on the no results page. I’m not sure
Here is the code:
{if segment_2 == "results"}<strong>{exp:search:keywords}</strong> found with {exp:search:total_results}{total_results}{/exp:search:total_results} results.
{exp:search:search_results}
<div class="etetc">Other stuff here</div>
{/exp:search:search_results}
{/if}
{if segment_2 == "no_results"}Sorry, there isn't anything on this site matching <strong>{exp:search:keywords} - {exp:search:total_results}{total_results}{/exp:search:total_results}</strong>
{/if}There is no output from the {exp:search:keywords} “no_results” part. “results” works fine.
Build: 20070918