We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22840
    • 1,572 Posts
    Hello,

    Currently using Ajaxsearch but I need it so that it only outputs the longtitle of the page ( but still searches everything )

    Is this possible huh
      • 5811
      • 1,717 Posts
      it only outputs the longtitle of the page ( but still searches everything )
      Simply adapt your ajaxResult or result template. For instance with the non-ajax mode:
      <div class="[+as.resultClass+]">
        <a class="[+as.resultLinkClass+]" href="[+as.resultLink+]" title="[+as.longtitle+]">[+as.longtitle+]</a>
      </div>

      By default whereSearch=`content|tv`.
      And set &extract=`0` to avoid a useless build of extract if you don’t display it.
        • 22840
        • 1,572 Posts
        Thanks,

        &extract=`0` was what I needed but didn’t see any referance to it on the wiki (probabley my eyesight ) grin