We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 477
    • 19 Posts
    @coroico

    Now I’m testing v1.5 (v1.6 in the snippet). It is a default version in modx 0.9.6.1p2 - AjaxSearch with set suffix ".html" works correct...

    So a problem is in versions: 1.7.1 and 1.7.0.2.
      • 5811
      • 1,717 Posts
        • 477
        • 19 Posts
        @coroico

        I try use AjaxSearch without parameter &AS_landing because I have snippet on the rightsidebar.

        I don’t want to redirect to any document id when search results are displayed.

        When I use parameter &AS_landing suffix ’.html’ works correct. (so always I’m redirect to main page but I dont’ want this)

        Ok, problem is solved.

        sorry for english.
          • 5811
          • 1,717 Posts
          @rossco

          I have a page that is hidden from the menu and not searchable but it’s still showing up in the ajax search ever using &hidemenu=`0`

          What else am I missing from the snippet to not search hidden pages?
          Look at the following test and try to search "constitution". Two pages are output as results but not the page http://www.modx.wangba.fr/education-right-en.html
          Which is correct as I have set this page not searcheable and invisible from menu (you can’t see it in the english document list)

          Which AS version do you use ? 1.7.1 I hope wink
          • I’m using this call in my pages

            [!AjaxSearch? &ajaxSearch=`1` &showMoreResults=`1` &moreResultsPage=`72` &highlightResult=`1` &hideMenu=`0` !]

            The search is picking up a document that has no template, a page title and only has a line of text. It’s set to not searchable and hide from menu. I’ve tried putting a snippet in the blank document

            [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0`!]

            And it’s still found in the search? Well the title shows up and is clickable.

            Quote from: coroico at May 06, 2008, 02:20 PM

            @rossco

            I have a page that is hidden from the menu and not searchable but it’s still showing up in the ajax search ever using &hidemenu=`0`

            What else am I missing from the snippet to not search hidden pages?
            Look at the following test and try to search "constitution". Two pages are output as results but not the page http://www.modx.wangba.fr/education-right-en.html
            Which is correct as I have set this page not searcheable and invisible from menu (you can’t see it in the english document list)

            Which AS version do you use ? 1.7.1 I hope wink

              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 4749
              • 623 Posts
              Great idea ZAP, I’ll do that now.
                The MODx has you...
                Utah Web Design
                • 12983
                • 108 Posts
                I do have friendly URLs activated, with use friendly alias path activated.
                AjaxSearch 1.7.1.

                I have a "test" node under parent node (0), with content:
                [!AjaxSearch!]

                Calling the page:
                http://mydomain.com/test

                ...the AjaxSearch works good, I can see the results and click them.

                But, if I move the "test" node under another node - say - "home" under "en", it does not work!
                That is, calling the page:
                http://mydomain.com/en/home/test

                ...the AjaxSearch form is showed, I type something in, press the submit search button, and the searching and cross gifs are shown, but nothing else, and nothing is retrieved and showed.

                What should I correct/do in order to have it working in my environment with friendly urls activated
                  • 33337
                  • 3,975 Posts
                  Hi guys, this topic has grown too large, we got dedicated forums for AjaxSearch http://modxcms.com/forums/index.php/board,320.0.html .... From now on, please use the forum and create new topics for your issues.

                  I will be closing this topic soon too tongue...
                    Zaigham R - MODX Professional | Skype | Email | Twitter

                    Digging the interwebs for #MODX gems and bringing it to you. modx.link
                  • Went ahead and closed it indeed ... 40+ pages is a bit unwieldy!
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me

                    This discussion is closed to further replies. Keep calm and carry on.