We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27305
    • 173 Posts
    I have the ajaxsearch call at the top of my page, Im using non ajax, when I search and it hits the landing page, next to the search box it says

    There were no search results. Please try using more general terms to get more results.


    Even when it finds stuff! The message should appear next the the call on the landing page, not next to the form input box, and when it finds something it should not appear at all

    [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &depth=`5` &addJscript=`1` &extract=`1` &grabMax=`50` &AS_showResults=`1` !]

    Anyone else had this problem?
      I made my first site with modx
      ------------------------
      Shopping blog
      Sky+ HD
      • 27305
      • 173 Posts
      Sorry my bad, used on my search form

       &AS_showResults=`0`


      I hate mondays

      ss
        I made my first site with modx
        ------------------------
        Shopping blog
        Sky+ HD
        • 14147
        • 26 Posts
        On the page where you want the search form, I have:

        [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`5` &AS_showResults=`0` !]

        On the page where I want the results to be displayed (ID=5), I have:

        [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`5` &AS_showForm=`0` &grabMax=`10` &highlightResult=`0`!]

        But I still don’t get any results returned. I have only a couple of pages on the website, and the word I search for, I know is on the home page - but nothings displayed!
          • 27305
          • 173 Posts
          I’m no expert but try adding

          &AS_showResults=`1` &advSearch=`allwords` &whereSearch=`content,tv`


          You dont need the &AS_landing=`5` on the landing page
            I made my first site with modx
            ------------------------
            Shopping blog
            Sky+ HD
            • 14147
            • 26 Posts
            In my case, the solution was a typical school boy error. By default, non of my content was searchable! embarrassed
              • 27305
              • 173 Posts
              doh! I feel your pain, we have all been there, I`m there most of the time!
                I made my first site with modx
                ------------------------
                Shopping blog
                Sky+ HD