We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32360
    • 16 Posts
    I am creating a list of cars for a cab company.

    Using non-ajax mode, i can list different template var contents with no problem.
    Its when i use the ajax mode (with or without live search) where i run into trouble.

    To make it easy for you to understand:

    My snippet call:
    [!AjaxSearch? &language=`english-utf8`   &tplAjaxResult=`bilar-searchresult` &whereSearch=`content:NULL|tv` &tvPhx=`tv:displayTV` 
    &withTvs=`asTag1` !]
    


    My bilar-searchresult
    <div class="[+as.resultClass+]">
      <a class="[+as.resultLinkClass+]" href="[+as.resultLink+]" title="[+as.longtitle+]">[+as.pagetitle+]</a>
    [+as.descriptionShow:is=`1`:then=`
      <span class="[+as.descriptionClass+]">[+as.description+]</span>
    `+]
    [+as.extractShow:is=`1`:then=`
      <div class="[+as.extractClass+]"><p>[+as.extract+]</p></div>
    `+]
    [+as.asTag1Show:is=`1`:then=`
      <div class="[+as.asTag1Class+]"><strong>asTag1=</strong> TestTAG1  [+as.asTag1+]</div>
    `+]
    [+as.asTag2Show:is=`1`:then=`
      <div class="[+as.asTag2Class+]"><strong>asTag2=</strong> TestTAG2 [+as.asTag2+]</div><br />
    `+]
    </div>
    


    My tvs in the documents are named:
    asTag1 and asTag2


    I can not get the astag1 or 2 to show up in the listing. The page title do show, but not any of these tvs.


    I have PHx 2.1.3 installed, may that cause problems?
      [url=http://www.williamastrom.se]Webdesign and CMS developer William
      • 5811
      • 1,717 Posts
      Which version of AjaxSearch do you use ?
        • 32360
        • 16 Posts
        1.8.5
          [url=http://www.williamastrom.se]Webdesign and CMS developer William
          • 5811
          • 1,717 Posts
          Thanks for this feedback. The answer is on this post
            • 32360
            • 16 Posts
            Thanks for fixing it!
              [url=http://www.williamastrom.se]Webdesign and CMS developer William