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

    i have a problem with AjaxSearch and YAMS.

    System: MODx Evolution 1.1
    Snippet: AjaxSearch 1.10.1

    I try to set &whereSearch individually for content_de, content_en and content_ru but i get error.

    AjaxSearch error: table content_de not defined in the configuration file: !


    [!AjaxSearch? 
    &showInputForm=`0` 
    &ajaxSearch=`0` 
    &extract=`content_de,pagetitle_de`
    &whereSearch=`content_de`
    &language=`(yams_mname)`!]
    



    Please help!

    This question has been answered by joe-petts. See the first response.

    [ed. note: joe-petts last edited this post 7 years, 6 months ago.]
    • discuss.answer
      • 51347
      • 82 Posts
      My fail. I think, i got it now.

      Snippet-call:

      [!AjaxSearch? 
      &whereSearch=`content`
      &showInputForm=`0` 
      &ajaxSearch=`0` 
      &extract=`content_(yams_id),pagetitle_(yams_id)`
      &language=`(yams_mname)`!]
      


      AS get automatically the content of the langauge with
      &whereSearch=`content`
      , although the tv "content" it is not used (because YAMS have content_de, content_en...).