We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32678
    • 290 Posts
    I’m placing results from non-Ajax search into a chunk called ajaxResults. However, the results are not showing up on the landing page.

    Here’s the first call:
    [!AjaxSearch? &ajaxSearch=`0` &advSearch=`exactphrase` &tvPHx=`imageTitle,imageFile` &withTvs=`+:imageTags,imageTitle,imageFile` &order=`publishedon DESC` &showinputForm=`0` &showIntro=`0` &pagingType=`0` &showResults=`0` &filter=`template,18,2|template,5,2|template,10,2|template,14,2|template,16,2||template,17,2|template,4,2|template,7,2|template,13,2|template,3,2` &landingPage=`70` &showPagingAlways=`0` &tplInput=`ajaxSearch` &tplResults=`ajaxResults` &highlightResult=`0` &asLog=`2:0:200`!]

    This is the call on the landing page (which might be overkill; I don’t quite understand how best to form the landing page call):
    [!AjaxSearch? &ajaxSearch=`0` &advSearch=`exactphrase` &tvPHx=`imageTitle,imageFile` &withTvs=`+:imageTags,imageTitle,imageFile` &order=`publishedon DESC` &showInputForm=`0` &showIntro=`0` &pagingType=`0` &filter=`template,18,2|template,5,2|template,10,2|template,14,2|template,16,2||template,17,2|template,4,2|template,7,2|template,13,2|template,3,2` &landingPage=`70` &showPagingAlways=`0` &tplInput=`ajaxSearch` &tplResults=`ajaxResults` &highlightResult=`0` &asLog=`2:0:200`!]


    Note that I’m including two template variables. Here’s the results chunk:

    <div class="ajaxResults">
    <a href="[+as.id+]" title="[+as.longtitle+]"><h2>[+as.imageTitle+]</h2></a>
    <a href="[+as.id+]" title="[+as.longtitle+]"><img src="[+as.imageFile+]" alt="[+as.imageTitle+]" /></a>
    </div> <!--end ajaxResults -->

    Not sure what I’m doing wrong...any input is greatly appreciated!