-
- 173 Posts
I’m also working on a multi-language site. I tried your site and it seems to work fine for you...
I have a directory structure for each language and I specify &parents to be the root of a given language. For instance I set &parent=`47` to narrow the search in only the directory structure under doc 47, but if I have &addJscript=`0`, the search will also look into document directory 100 and 60....
I have something like that:
Site Root
-----> English (47)
----> More doc
-------> French (100)
--------> spanish (60)
By the way I don’t get the drop down box below the Search text field when &addJscript=`0`. Is it correct?
Thank for your help.
&addJscript puts the <script....></script> tags to load the MooTools library in the head of your page. This is mostly useful if you already have the MooTools library loaded for some other script. If you don’t have that of course the Ajax stuff won’t work. If you don’t want the Ajax, you’re better off using ajaxSearch=`0`.
&AS_showResults=`0` tells it not to display the results on this page. You can’t have it both ways.
Your problem may be the conflicting parameters in the snippet call. I suggest you carefully go over the parameter list in the README file that comes with the snippet.
The block containing the search results has to be styled with position: absolute and then positioned, just like a drop-down menu.
-
- 173 Posts
Perfect! Thanks for your super quick response.
Have a great week-end