We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20014
    • 200 Posts
    just upgraded to evo 1.0.4 from 1.0.3 and the ajaxsearch template has reverted back to it’s default,
    here is the call:

      [!AjaxSearch? ajaxSearch=`0` &AS_landing=`8` &moreResultsPage=`8` &tplLayout=`layout2` &parents=`1,51` &clearDefault="0" &showMoreResults=`1` &addJscript=`1` &extract=`0` &AS_showResults=`0`!]


    it points to the template I want and which had worked fine, but now the button has it’s default text of go! and the text box is no longer aligned, will try to work on this while someone can enlighten me, but right now the site looks like crap.

    plus it doesn’t go to the search page but displays a list underneath the box without leaving the page where the search was performed, will remove ajaxsearch for now.
      • 5811
      • 1,717 Posts
      [!AjaxSearch? ajaxSearch=`0` &AS_landing=`8` &moreResultsPage=`8` &tplLayout=`layout2` &parents=`1,51` &clearDefault="0" &showMoreResults=`1` &addJscript=`1` &extract=`0` &AS_showResults=`0`!]
      This post can help you

      Try: [!AjaxSearch? ajaxSearch=`0` &landingPage=`8` &moreResultsPage=`8` &parents=`1,51` &clearDefault=`0` &extract=`0`!]
        • 20014
        • 200 Posts
        ok weird, I have two languages, so I checked the ajaxsearch on the landing page in the other language and it worked fine, everything aligned and it went to the search results page, since I had the ajaxsearch in a chunk containing the header I copied that to the english version header changed the parameters back to those for english and it worked, essentially they are both (the two language calls) the same, just layout landing and parents page were different, it’s nice now but could someone enlighten me as to what may cause this so I don’t have a fit the next time I run across it?
          • 20014
          • 200 Posts
          I figured out why the other language worked, I did a separate install of ajaxsearch for it only making the call to it, and once I changed the call back to !AjaxSearch? instead of !AjaxSearchspanish? it went right back to it’s behavior of displaying the default template without looking at my custom template.

          thanks coroico, will try the call, but without a call to the template won’t I loose my customizations?
            • 20014
            • 200 Posts
            ok new template call paremete used that, then used the input.tpl in the new ajax install for my template, by tweaking that, used showintro to set it to zero, now, it goes to the results page, but how do I rid myself of the search box on top of the search result list and also, after doing a search and arriving on the landing page, there is still a list of results appearing underneath the main search box, how do I rid myself of those?

            as for the search box in the results page, i tried to use &showform, but it made the main box disappear as well, am trying to rid the result list which appears underneath the search box now when going to the landing page, will update.
              • 20014
              • 200 Posts
              ok this call seems to work
               [!AjaxSearch? ajaxSearch=`0` &showIntro=`0` &showResults=`0` &tplInput=`newas` &landingPage=`8` &moreResults=`0` &parents=`1,51` &clearDefault=`0` &extract=`0`!]


              not sure if I need both &moreResults and &showResults together...

              I took the input.tpl from the new ajax install tweaked it along the lines of my old template, the class seemed to stay the same as it took the css the same way as the old basic template in older versions of ajaxsearch did.

              there was a couple of hours sorry folks, but it wasn’t something minor. will now check on my linux box as well as virtual box for older browsers.
              once I feel good about this, I will update my second language ajaxsearch.

              I still need to know how to get rid of the search box on the landing page without effecting the main search box though, any ideas?
                • 20014
                • 200 Posts
                ok, all fine, still can’t rid myself of the extra redundant search box though.
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  &AS_showForm=`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
                    • 20014
                    • 200 Posts
                    Tried as you suggested Susan, but it had no effect, I still have a search box within the content area of my results page.

                    in the updated snippet it says:

                    // &showInputForm [0 | 1]
                    // If you would like to turn off the search form when showing results you can set this to false.(1=true, 0=false)
                    // Default: 1

                    when I try this, it does remove it but also the form from the main search box as well.

                    EDIT: GEEZ, WHAT WAS A THINKING? (OBVIOUSLY I WASN’T) HAD TO PUT ABOVE IN THE RESULTS PAGE CALL!