We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6681
    • 14 Posts
    davepritchardmedia Reply #1, 16 years ago
    Hi guys,

    I’m having some issues with the Ajaxsearch landing page function.

    I managed to get the old version working but this would crash the site now and then so I moved up to version 9 (i think).

    One of the changes in this version was that we now have the landingPage function and its this that I cant seem to get working.

    The code I use to call AjaxSearch is:

    [!AjaxSearch? &showResults=`1` &landingPage=`128` &showMoreResults=`1` &moreResultsPage=`128` &showIntro =`0`!]

    As you can see the landing page is set to ID 128.

    I have also put the following code in the template for the landing page itself:

    [!AjaxSearch? &ajaxSearch=`0` &showInputForm=`0`!]

    I am sure there is a very simple answer to this problem and the error is occurring somewhere between my chair and Keyboard undecided

    thanks for any help you can offer.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Your first AjaxSearch needs to have &showResults=`0` if you don’t want to show the results there, but on the landing page. You also have to have &ajaxSearch=`0` to turn off the AJAX part.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 6681
        • 14 Posts
        davepritchardmedia Reply #3, 16 years ago
        You sir are a legend.

        Thanks very much for that, all working now.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Sometimes looking at my post count I wonder if it’s only because I need to get a life grin
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org