We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8345
    • 147 Posts
    Hello,

    I have here http://2itm.com/russian.html Ajax call on top of the page:

    [[AjaxSearch? &ajaxSearch=`0` &AS_landing=`332` &tplLayout=`searchRus` &language=`russian`]]


    And on search results page:

    [[AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &language`russian`]]


    But if you type random text to search box then you still get:

    There were no search results. Please try using more general terms to get more results.

    The CSS is bit messed up in that page so you have to select the main area to see the text.

    I also created estonian-utf8.inc.php and estonian.inc.php and then &language=`estonian` also doesn’t work sad

    I have MODx 1.0.3 and ajaxSearch 1.8.4
      • 5811
      • 1,717 Posts
      Try to use russian-UTF8 rather than russian.

      And don’t use cached snippet. Use:
      [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`332` &tplLayout=`searchRus` &language=`russian-UTF8`!]

      Because it seems that on your site, you use also AjaxSearch in english.

      And
      [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &language`russian-UTF8`!]
        • 8345
        • 147 Posts
        Great, thanks. I couldn’t make [!cashed!] the first AS call that generates the search form as then it just showed instead of search form the AS call itself but I made the AS call [!cashed!] on search results page and also added -UTF8 and now it works!

        Probably I couldn’t make the first AS call [!cashed!] because it’s not in template but in the TV of the language parent document and is added to every page via GetField.