We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11858
    • 130 Posts
    I have a template which formats some of the fields through phx. For example I have a template that looks like this:
    <div class="Story">
    <div class="PressImage">
    <a href="[+as.resultLink+]"><img src="[+as.image:phpthumb=`&zc=1&w=170&h=111`+]" alt="[+as.pagetitle+]"></a>
    </div>
    <div class="PressHeadingNews">
    <h4><a href="[+as.resultLink+]">[+as.pagetitle+]</a></h4>
    <span class="smalltxt">[+as.createdon:date=`%A, %d %B, %Y at %R`+]</span> 
    <p>[+as.content:firstp+]</p>
    <a href="[+as.resultLink+]" class="buttonArrow"><span>Read more</span></a>
    </div>
    </div>
    


    The Ajaxsearch call is:

    [!AjaxSearch? &ajaxSearch=`3` &init=`all` &jscript=`jquery` &category=`articleCategory` &tags=`tagsAll`  &pagingType=`2` &tplInput=`tplPressMainSearch` &tplAjaxResults=`tplProductsMainResults` &tplAjaxResult=`PressStoryTemplateAJAXSEARCH` &tplAjaxGrpResult=`tplProductsMainGrpResults` &liveSearch=`1` &addJscript=`0` &parents=`168` &ajaxMax=`20` &filter=`template,27,1` &withTvs=`+:image`  !]
    


    The phpthumb phx call works fine - the image is resized. The [+as.content:firstp+] and [+as.createdon:date=`%A, %d %B, %Y at %R`+] don’t work while phpthumb does, for reasons I’m hoping someone can explain to me!

    Does anyone know how to get PHx calls working in Ajaxsearch?