We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Hello,
    Although I was able to find some posts on the topic in the forum, it seems to me that there is no solution on limiting the search to the ultimate parent - I like to restrict the search results to either my english or german pages.

    Is there a workaround yet?

    thank you in advance for your help.
      • 11975
      • 2,542 Posts
      Hi,

      if you want to restrict the search to a specific folder, you’ll have to load the whole list of the folder it contains.
      And then add to the WHERE clause in the sql statement in AS snippet => sc.parent IN (the list of folder ids comma separated).

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 19889
        • 616 Posts
        Quote from: heliotrope at Jul 11, 2007, 07:48 AM

        Hi,

        if you want to restrict the search to a specific folder, you’ll have to load the whole list of the folder it contains.
        And then add to the WHERE clause in the sql statement in AS snippet => sc.parent IN (the list of folder ids comma separated).

        :-)


        thanks for replying - I hope there will be a parameter for this in a future version of ajaxSearch.
          • 11975
          • 2,542 Posts
          If you don’t need the ajax part of AS I can provide you a solution.
          here is a sample search form created with tvExplorer (a snippet I’m working on).
          http://www.deco-in.com/recherche-avancee

          It offers the ability to combine parents criteria, tvs and full text.

          let me know if you’re interested in getting the source code.

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 19889
            • 616 Posts
            Quote from: heliotrope at Jul 11, 2007, 08:24 AM

            If you don’t need the ajax part of AS I can provide you a solution.
            here is a sample search form created with tvExplorer (a snippet I’m working on).
            http://www.deco-in.com/recherche-avancee

            It offers the ability to combine parents criteria, tvs and full text.

            let me know if you’re interested in getting the source code.

            :-)


            that would be great - I’m not using the ajax part.
              • 11975
              • 2,542 Posts
              I’ll try to post the code in the afternoon or tomorrow morning.
              there is no available documentation in english for this snippet.

              i will help you install the required files and to set up your search form

              :-)
                Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                • 19889
                • 616 Posts
                Quote from: heliotrope at Jul 11, 2007, 01:22 PM

                I’ll try to post the code in the afternoon or tomorrow morning.
                there is no available documentation in english for this snippet.

                i will help you install the required files and to set up your search form

                :-)

                SOUNDS GREAT
                  • 11975
                  • 2,542 Posts
                  I’ve posted the tvExplorer

                  http://modxcms.com/forums/index.php/topic,16456.msg104827.html

                  :-)

                  If you need assistance post in the thread
                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 19889
                    • 616 Posts
                    Quote from: heliotrope at Jul 11, 2007, 06:46 PM

                    I’ve posted the tvExplorer

                    http://modxcms.com/forums/index.php/topic,16456.msg104827.html

                    :-)

                    If you need assistance post in the thread

                    I’ll check it out - thanks again