We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3396
    • 2 Posts
    Hi!

    Love AjaxSearch, but I’ve come across an issue and I’m not sure what I’m doing wrong. I’ve setup a TV called my-id. I only want to search for documents by this field. The following code works flawlessly.

    [!AjaxSearch? &ajaxSearch=`1` &advSearch=`exactphrase` &whereSearch=`content:NULL|tv` &withTvs=`+:my-id`!]

    Now I change it to use a landing page and now I’m getting results that I would have expected to be excluded.

    Here is my AjaxSearch call:

    [!AjaxSearch? &ajaxSearch=`0` &advSearch=`exactphrase` &AS_landing=`2` &whereSearch=`content:NULL|tv` &withTvs=`+:my-id`!]

    I am running Uniform Server v4.3 under Windows Vista Home Edition and using FireFox 3.0.13.

    I am using version 1.8.3 of AjaxSearch and version 1.0.0 of Modx.

      • 5811
      • 1,717 Posts
      Did you add &whereSearch=`content:NULL|tv` &withTvs=`+:my-id` in the AS snippet call of the landing page ?
        • 3396
        • 2 Posts
        No, I didn’t have those arguments in the snippet call on the landing page.

        I just tried putting in them and it worked a treat!

        Thanks coroico!
          • 36502 ☆ A M B ☆
          • 491 Posts
          Hi, I’ve tried serveral times a similar call:

          [!AjaxSearch? &ajaxSearch=`1` &advSearch=`exactphrase` &whereSearch=`content:NULL|tv` &withTvs=`+:my-id`!]

          with AjaxSearch 1.8.4 works perfect!

          with version 1.8.5 it doesn’t seem to work, is the option "withtv" still valid?

          Thanks
            TilliLab | MODX Ambassador
            website