We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1778
    • 659 Posts
    Hi all,

    I use SimpleSearch and I have the following issue :

    My call SimpleSearchForm is in my template like this :
     [[!SimpleSearchForm? &tpl=`mySearchForm`]]
    


    If I call the SimpleSearch result snippet in my template too (below the SimpleSearchForm call) all works fine, results are returned... all is fine

    But I want the results to be displayed on another page (let say ID 10).
    I modified my simpleSearchForm call like this :

    [[!SimpleSearchForm? &landing=`10` &tpl=`mySearchForm` ]]
    

    (I tried too without &tpl, or with &tpl first, then &landing... same (no)result.

    In my results page I put the snippet like this
     [[!SimpleSearch? &perPage=`3`]]
    


    The redirection on page ID 10 works fine but always returns "No results found" ...
    Did I miss something or is it a bug ? What can I do ?

    Thanks
    Cheers

    Configuration :
    Linux Debian Lenny
    Apache 2.2.11
    PHP 5.3.2-0 dotdeb.2
    MySQL 5.1.45
    MySQL Cient API : mysqlnd 5.0.7-dev - 091210 - $Revision: 294543 $

      • 28215
      • 4,149 Posts
      A few things:

      - Whats your search query? (What are you searching for)
      - When it redirects to Resource ID 10, what’s the ’search’ REQUEST variable in the URL contain?
      - Whats the contents of mySearchForm?
      - What browser are you on?

      I can do the landing page just fine on mine.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 1778
        • 659 Posts
        A few answers :

        My query is just a simple word (I know this word is present in some pages) like "moteur", when redirecting the request variable seems to be the good one
        (mysite.fr/resultats.html?search=moteur)...
        

        no quotes or backticks or anything around "moteur" is it normal ?

        I tried just with a very basic call with only the landing parameter, the issue still here. (so it is not a problem with my "mySearchFormTpl"...)

        Same problem on FF and Chrome...

        The "landing" redirect me on the good page no problem, just don’t find any result, but all works fine if all snippets calls are in the template... If the simpleSearchForm is called alone in the template with the landing parameter, and the simpleSearch (result) is called in the landing page, it returns "no result".

        If I call both snippet (simpleSearchForm, and SimpleSearch) in the template (with no landing parameter) all is fine...

        Cheers