OK, have spent another couple of hours going through the wiki but am very confused - sorry if this is easy. There seem to be a lot of parameters shown on the wiki but very little info on putting it all together - beyond some basic calls.
In the results, is it possible to have a page title, the content where the search term was found (with the search term highlighted) and a page URL link at the end?
I’m guessing the following would be required to make this happen?
- The search call
- Template chunks?
- Place holders?
I’ve started with this call (non-ajax version)
[!AjaxSearch? &ajaxSearch=`0` &AS_landing=`29` &AS_showResults=`0` &tplResult=`SearchResults`!]
With this SearchResults template:
<h3>[+as.resultLink+]</h3>
<p><a</p>
<p>[+as.resultLink+]</p>
And this template to format the results:
<h3><a href="[+as.pagetitle+]">[+as.pagetitle+]</a></h3>
<p>[+as.contentShow+]</p>
<p class"resultlink">[+as.resultLink+]</p>
This has no effect on the results - hopefully I’m missing something simple!
Any help would be much appreciated.
Cheers