We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16238
    • 47 Posts
    Hi, sorry for my bad English.

    I have a problem with AjaxSearch v1.8, it does not work width Jot,

    this is my site http://www.problemas.ru, where I want to make a search for comments:

    I call AjaxSearch on the page:
    [!AjaxSearch? &ajaxSearch = `0` &AS_showResults = `0` &whereSearch = `jot` &AS_landing = `8` &extract = `99: jot_content` &showMoreResults = `1` &moreResultsPage = `8`!]


    I call AjaxSearch on page with results (index.php?id=8):
    [!AjaxSearch? &ajaxSearch = `0` &AS_showForm = `0` &extract = `1`!]


    Tried so:
    &whereSearch = `jot`
    and so:
    &whereSearch = `content,jot`
    and on the pages with the form and results, and many other different combinations...

    Still not working :’( Please help!
    Thank you.
      Download MODx Templates free
      • 5811
      • 1,717 Posts
      The documentation is not very clear ...
      By default &whereSearch=`content,tv`.
      TV, Jot and Maxigallery are called "joined" tables because they are linked to a "main" table : "site_content".
      But you could also define your own main custom table and joined tables.

      In any case you need to specify, in first position, a main table and then joined tables. So to search in Jot comments, use
      &whereSearch=`content,jot`
      If you want search also in tv use &whereSearch=`content,jot,tv`

      The documentation needs to be updated and improved. Sorry for the inconvenience.

      Look at http://www.modx.wangba.fr/index.php?id=178 and try with "poupées" as search term. You get a document with some photos. Open the photo "Poupées Russes" and you get a comment regarding the photo. This comment has been found in the search.
      "poupées" means "dolls". (beautifull girl) And the comment "poupées Russes" comes from the name of a french Movies, which happens in St Petersburg with beautifull women wink