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

    We’ve setup a non-ajax search form but we found the wiki article a bit hard to follow so have some questions:

    Results appearing in two places:
    Even though we’re using the non-ajax version, the results are appearing in two places 1) under the header and 2) on the results page. How do you stop the results appearing under the search input form, pushing the content down?

    Results:
    Currently the results show a page title as a link and what looks to be the long title and the description? Is there a way to display a title and content from the page - maybe content surrounding the search term?

    Styling The Results:
    In the wiki article there were a couple of template parameters:
    &tplResults &tplResult

    Are there any code examples for these templates to use as a starting point for our own templates?

    Default Search Text:
    Because we couldn’t find an option to disable the "Please enter your search....etc" text under the input form, we opted to set the display of:
    #ajaxSearch_form
    to none - but is this the best way to remove this?

    Any help would be much appreciated.

    Cheers
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      On the snippet for the form use &AS_showResults=`0`

        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
        • 5532
        • 251 Posts
        Thanks for the reply Susan - and sorry for calling you Scot in a previous post! I though sottwell was ScottWell.

        That worked great.

        Cheers