We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25317
    • 122 Posts
    I’ve reverted back to v1. Is there a way of making it be selective in which document branch to search?
      • 15987
      • 786 Posts
      No, the only way to restrict the search is by setting the documents you don’t want searched to unsearchable.
        • 33423
        • 27 Posts
        Hi, i love this snippet, thanks so much.
        But there are some issues i’ve faced.
        - In ie7 with default settings #ajaxSearch_output isn’t visible.
        - AjaxSearch code isn’t valid strict xhtml (i’ve <p> tags to form then validated.)

        ps: sorry for my english.
          • 3232
          • 380 Posts
          So here is my issue, i want to be able to search a specific container which this snippet doesnt do. but I also need to search TVs which this is the only search snippet that does do it.

          Is there anyway to modify this so that it willl only search a specific parent?>

          Thanks
          Brian
            • 26982
            • 75 Posts
            I’ve been trying for ages to fix a problem I’m having with AjaxSearch 1.6 (the version shipped with 0.9.6-RC3).
            The problem is similar to some on this thread, in that I have one call to AjaxSearch in my template, like this:
            [!AjaxSearch? &AS_landing=`8` &ajaxSearch=`0` &AS_showResults=`0`!]


            and my (uncached) landing page has a single call:

            [!AjaxSearch? &AS_showForm=`0` &AS_showResults=`1` &extract=`1`!]


            However, no search results are ever displayed.
            If I turn on &ajaxSearch=`1` then results are displayed as a live popup, but this breaks the template and also is not suitable for what is supposed to be a very simple site.
            You can try my live site here: http://www.maxwellmcknight.org.uk

            I’ve checked the snippet code, and it is definitely the updated version with only one "include_once" call.

            Any ideas greatly appreciated,

            /\dam
              • 30639
              • 22 Posts
              I was going through my 0.9.5 installation’s headers and I noticed a 404 on the following:

              GET /assets/snippets/AjaxSearch/search.gif HTTP/1.1

              I searched the code and the html and js and I’m not finding a call to search.gif

              I’m wondering if anyone knows what might be causing this?

              Thanks for the help!
                • 25317
                • 122 Posts
                I’ve just noticed that the search does not take into account permissions on documents restricted to specific webusers document groups.

                Ie, I have some documents that are not available without a user logging in... however the search will happily list them without the need to log in. The page is not accessible, however it’s existance can be shown which is not ideal.

                Using snippet version v1.0, as shipped with v0.9.5.
                  • 21801
                  • 6 Posts
                  Quote from: andrazk at Apr 05, 2007, 04:20 PM

                  Call in the template:
                  [!AjaxSearch? &AS_showForm=`1` &language=`slovenian` &AS_landing=`30` &addJscript=`1` &extract=`1` &AS_showResults=`0` &ajaxSearch=`0` &depth=`11` !


                  And my result page (id=30) call looks like this:
                  [[AjaxSearch? &AS_showForm=`0` &AS_showResults=`1` &language=`slovenian` &ajaxSearch=`0` ]]
                  


                  I hope it helps.
                  Thanks, it helps for me : ))
                    shit happens
                    • 27330
                    • 884 Posts
                    Great snippet,

                    however I have couple questions;
                    what’s the css class for the "* results found for"? I think i tried all the css from the snippet page but nothing seems to help me move it.

                    also, any option to have different styling for the snippet call? for example one style for side bar search and one for "search.html" page?
                      • 27330
                      • 884 Posts
                      better yet,
                      anyone have *maybe* a simple layout where the GO button is attached to the search input and the infotext/error message is below?


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