Didn’t work I’m afraid. In the searchresults.html I edited the ciode thus:
[!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &tplResults=`resultsholder` !]
I created a chunk called resultsholder, and used some code I found in a layout.tpl.html file in the AjaxSearch templates folder:
[+as.showForm:is=`1`:then=`
<form [+as.formId+] action="[+as.formAction+]" method="post">
<fieldset>
<input type="hidden" name="advSearch" value="[+as.advSearch+]" />
<label for="ajaxSearch_input">
<input id="ajaxSearch_input" class="cleardefault" type="text" name="search" value="[+as.inputValue+]"[+as.inputOptions+] />
</label>
<label for="ajaxSearch_submit">
<input id="ajaxSearch_submit" type="submit" name="sub" value="[+as.submitText+]" />
</label>
</fieldset>
</form>
`+]
[+as.showIntro:is=`1`:then=`
<p class="ajaxSearch_intro" id="ajaxSearch_intro">[+as.introMessage+]</p>
`+]
[+as.showResults:is=`1`:then=`
[+as.results+]
`+]
What’s happened now is that the search results don’t show at all...
Also how do I create a chunk for each individual item in the search results- as I can’t see how many search results there are (due to the formatting of the results)?
I then also tried [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &tplResults=`{{resultsholder}}` &tplResult=`{{resultholder}}` !] with both the chunks empty of any code (I’m not sure what code they should contain?) but again the search results show all bunched up without any formatting...