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_result_page not using template

June 09, 2013 6:30pm

Subscribe [2]
  • #1 / Jun 09, 2013 6:30pm

    Joshua McLemore

    6 posts

    Hello,

    I’m using the simple search option and am having trouble getting the no_result_page to work. When there are results, everything shows up using the ‘search/results’ template just fine. But when there is no results, I have a template at ‘search/noresults’ that isn’t showing. It’s just using the standard EE nasty grey screen as if I didn’t define a template to use. Here’s my code:

    <div id="site-search">
     {exp:search:simple_form search_in="everywhere" channel="bs_content|site_pages" no_result_page="search/noresults"}
      <input type="text" placeholder="What are you looking for?" name="keywords" id="site-search-footer" value="" size="30" maxlength="100">
      <input type="image" src="../../../includes/images/search_icon.png" id="site-search-footer-icon" value="submit" class="submit">
     {/exp:search:simple_form}    
    </div>

    Thanks for any help you can provide.

  • #2 / Aug 14, 2013 9:35am

    adamprocter

    228 posts

    Same problem :(
    Latest EE

    {exp:search:simple_form channel="artists" search_in="everywhere" status="open" where="all" result_page="search/searchresults" no_result_page="search/noresults"}
    <div id="searching">
    <input type="text" id="searchbox" name="keywords" placeholder="Search Artists"/>
    <button id="search" name="submit" type='submit'><i class='icon-search'></i></button>
    </div>
    {/exp:search:simple_form}
  • #3 / Sep 09, 2013 9:00am

    adamprocter

    228 posts

    must have been some template sync issues as appears to be working now.

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

ExpressionEngine News!

#eecms, #events, #releases