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

    Is it possible to convert the AJAX search into simple search? so that instead of displaying the search result right below the search text box it appears in the page body? and there should be no highlight and remove highlight stuff?

    Regards
      • 25663 MODX Staff
      • 12,272 Posts
      &ajaxSearch=`0` should do the trick, but read the snipped documentation for proper syntax. Also make sure you’re using the latest version.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 5811
        • 1,717 Posts
        No conversion from AjaxSearch to simple search.
        If you don’t want the results on the same page, you need two Snippets calls. The first one to define the input form and the second one to display the results on a landing page.
        For more information, look at the wiki documentation and the examples on the demo site.

        The snippet call of the "basic" demo is:

        [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`217`!] and [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0`!]
        on the landing page #217. See the landing demo


          • 24397
          • 17 Posts
          Thanks rthrash and coroico,

          I did accordingly and could implement what I wanted.

          Thank you so much
          Regards