Hello,
I have a weird problem. I’m using my own template to display the results. They are based on files we can found on ajaxSearch directory.
Here is the call to the snippet ajaxSearch :
[!AjaxSearch? &ajaxSearch=`0` &AS_landing=`116` &tplLayout=`optionSearch` &tplResults=`searchResults` &tplResult=`searchResult` &tplPaging=`searchPaging` &tvPhx=`tv:displayTV`!]
Here is the call on the landing page :
[!AjaxSearch? &AS_showForm=`0` &ajaxSearch=`0` &grabMax=`30` &order=`publishedon DESC` &formatDate=`d/m/y` &tplResults=`searchResults` &tplResult=`searchResult` &tplPaging=`searchPaging` &tvPhx=`tv:displayTV`!]
The chunk optionSearch :
<form [+as.formId+] action="[+as.formAction+]" method="post">
<input id="ajaxSearch_input" class="cleardefault" type="text" name="search" value="[+as.inputValue+]" [+as.inputOptions+] />
<input id="ajaxSearch_submit" type="submit" name="sub" value=" " />
<input type="radio" id="radio_oneword" name="advSearch" value="[+as.oneword+]" [+as.onewordChecked+] /><label for="radio_oneword">[+as.onewordText+]</label>
<input type="radio" id="radio_allwords" name="advSearch" value="[+as.allwords+]" [+as.allwordsChecked+] /><label for="radio_allwords">[+as.allwordsText+]</label>
<input type="radio" id="radio_exactphrase" name="advSearch" value="[+as.exactphrase+]" [+as.exactphraseChecked+] /><label for="radio_exactphrase">[+as.exactphraseText+]</label>
</form>
The chunk searchPaging :
[+as.tpl:is=`paging`:then=`
<tr><td> </td></tr>
<tr><td class="ajaxSearch_paging" colspan="4" align="center">
[+as.pagingText+]
[+as.pagingLinks+]
</td></tr>
`+]
[+as.tpl:is=`pagingLinks`:then=`
<a href="[+as.pagingLink+]" class="ditto_previous_link">[+as.pagingText+]</a>[+as.pagingSeparator+]
`+]
[+as.tpl:is=`pagingLinksCurrent`:then=`
<span class="ditto_currentpage"> [+as.pagingText+]</span>[+as.pagingSeparator+]
`+]
The chunk searchResult :
<tr>
<td class="[+as.resultLinkClass+]"><a href="[+as.resultLink+]" title="[+as.longtitle+]">[+as.publishedon+]</a></td>
<td class="[+as.resultLinkClass+]"><a href="[+as.resultLink+]" title="[+as.longtitle+]">[+as.pagetitle+]</a></td>
<td class="[+as.resultLinkClass+]"><a href="[+as.resultLink+]" title="[+as.longtitle+]">[+as.liste_svn+]</a></td>
<td class="[+as.resultLinkClass+]"><a href="[+as.resultLink+]" title="[+as.longtitle+]">[+as.description+]</a></td>
</tr>
The chunk searchResults :
[+as.noResults:is=`1`:then=`
<div class="[+as.noResultClass+]">
[+as.noResultText+]
</div>
`:else=`
<div align="center">[+as.resultInfoText+]</div>
<table border="0" width="100%" align="center" cellpadding="1">
<tbody>
<tr>
<td width="100" class="ajaxSearch_head">Publiée le</td>
<td width="100" class="ajaxSearch_head">Document</td>
<td class="ajaxSearch_head">SVN</td>
<td class="ajaxSearch_head">Libellé</td>
</tr>
[+as.listResults+]
[+as.paging+]
</tbody>
</table>
`+]
Hope you’ll be able to help me