ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

No results page no output wierdness

October 17, 2007 8:17am

Subscribe [1]
  • #1 / Oct 17, 2007 8:17am

    Simon Clayson

    38 posts

    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

  • #2 / Oct 19, 2007 7:43am

    Simon Clayson

    38 posts

    Ignore, this was a basic schoolboy error…

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases