We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    Just a quick one, I’ve got the slightly advanced search version working http://httpwix.s.customers.ilisys.com.au/help-utilities/search

    everything’s perfect except it displays the test "optionSearch " underneath the search box.

    How do I hide that?

    Thanks

      Content Creator and Copywriter
      • 27305
      • 173 Posts
      What does you ajaxsearch call look like? Also did you know that page has jscript errors
        I made my first site with modx
        ------------------------
        Shopping blog
        Sky+ HD
        • 18367
        • 834 Posts
        [!AjaxSearch? &ajaxMax=`50` &extract=`99` &tplLayout=`optionSearch` !]


        I’m just using the example that came with AjaxSearch.

        Pretty sure I haven’t changed anything
          Content Creator and Copywriter
          • 27305
          • 173 Posts
          try it without

          &tplLayout=`optionSearch`
            I made my first site with modx
            ------------------------
            Shopping blog
            Sky+ HD
            • 5811
            • 1,717 Posts
            @all

            regarding the tpLayout parameter, keep care that if you use &tplLayout=`optionSearch` this means that "optionSearch" should be defined as a chunk in MODx.
            An other use could be : &tplLayout=`@FILE:assets/snippets/ajaxSearch/templates/optionMultipleList/layout.tpl.html`

            Look at the option mutiple list test for an example. And let me know if something is not clear or if am wrong.
              • 18367
              • 834 Posts
              Now I’m more confused.

              Yes I already have the optionSearch set up as a chunk. As I said, everything on this search works fine.

              I just don’t want that bit of code/text to appear under the search field.

              If I remove
              &tplLayout=`optionSearch`
              as Simonok says, what was the point of making the optionSearch chunk? Surely that will just revert back to a normal search.
                Content Creator and Copywriter
                • 5811
                • 1,717 Posts
                I don’t know from where come this text. Check your chunk and your document (just under the snippet call). May be ...
                  • 18367
                  • 834 Posts
                  OK,

                  found the problem. For some reason I had optionsearch typed in at the end of my chunk.

                  Don’t know how it even got there. Probably some over eager copy and pasting on my part.
                    Content Creator and Copywriter