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.

advanced search

August 29, 2012 4:37am

Subscribe [3]
  • #1 / Aug 29, 2012 4:37am

    Visual

    14 posts

    The advanced search work for me perfectly except for a minor thing that is bothering me.

    Template for the search results goes to http://www.mywebsite.com/search/index.php
    now the no_results page i would like it to go to http://www.mywebsite.com/search/noresults.php

    except that it doesn’t work
    however if i refer the no_results to another page in a nother template then it work. but inside the same template of the search it doesn’t work…
    why is that?

  • #2 / Aug 29, 2012 1:37pm

    Shane Eckert

    7174 posts

    Hey Visual,

    Thank you for posting your question here on the ExpressionEngine forums.

    Can you show me your form?

    What does happen when there are no results?

    You are using no_results_page= correct?

    Please let me know!

    Cheers,

  • #3 / Aug 30, 2012 3:34am

    Visual

    14 posts

    Correct,
    I tried both
    no_results_page and no_results

  • #4 / Aug 31, 2012 9:30am

    Kyle Cotter

    730 posts

    Hi Visual,

    Can you show us the code you’re using.

    Thanks.

  • #5 / Sep 03, 2012 5:56am

    Visual

    14 posts

    i’m using this code:

    {exp:search:advanced_form result_page="search" no_results="search/resultss" search_in="everywhere"}

    My results page

    {exp:search:search_results}
  • #6 / Sep 05, 2012 3:28pm

    Dan Decker

    7338 posts

    Hi Visual,

    I’m sorry for your frustration with simple search!

    Can you please confirm that you are using the correct parameter? In your template example above, you are using no_results= *that is incorrect*. Can you try no_result_page there instead?

    {exp:search:advanced_form result_page="search" no_result_page="search/resultss" search_in="everywhere"}

    If that was a typo, can you please supply the actual template code you are using? We really want to help, but we need the actual template code you are using in production in order to be most effective.

    One more thing to check, make sure you are using “www” or no-“www” consistently in your templates and in the Control Panel. It doesn’t matter one way or the other, as long as it is constant.

    If the correct parameter doesn’t sort this out, we’ll want to come in for a look.

    Cheers,

  • #7 / Sep 06, 2012 3:05am

    Visual

    14 posts

    Thanks for the reply
    I’ve tried both no_results and no_result_page and both don’t do it.


    Here is the code i’m using:

    {exp:search:advanced_form result_page="search" no_result_page="search/noresultss" search_in="everywhere"}
    
    <fieldset class="fieldsetgroup">
          
     <input type="text" class="search-field fieldsetinput" name="keywords" />
     <input class="search-btn" value="Search" type="image" src="{homepage}/media/images/searchIcon.png">
     </fieldset>
    
    {/exp:search:advanced_form}
  • #8 / Sep 07, 2012 3:22pm

    Dan Decker

    7338 posts

    Hi Visual,

    I think we have some tags crossed here. Give this code a try and let me know the results:

    {exp:search:simple_form result_page="search" no_result_page="search/noresultss" search_in="everywhere"}
    
    <fieldset class="fieldsetgroup">
          
     <input type="text" class="search-field fieldsetinput" name="keywords" />
     <input class="search-btn" value="Search" type="image" src="{homepage}/media/images/searchIcon.png">
     </fieldset>
    
    {/exp:search:simple_form}


    ~

  • #9 / Sep 10, 2012 2:35am

    Visual

    14 posts

    Thanks,
    But this took me to the default no results page of expressionengine :(

  • #10 / Sep 11, 2012 10:58am

    Dan Decker

    7338 posts

    But this took me to the default no results page of expressionengine :(

    Of ExpressionEngine.com or of the Agile Records theme that is included with an EE install?

    I copied your template code exactly as you provided it, and changed it to use the simple tag form. You need to create a custom “noresults” template and point the parameter to that if you want it to use something else.

    no_result_page="search/custom_no_results"

    I note in your parameter, you have an extra “s” in your template name? Is that intentional or a typo?

    ~

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

ExpressionEngine News!

#eecms, #events, #releases