Site Search Result Template Markup

Version 2.0 of the Search Script introduces a page template for the results page to make it even easier to customise the results page so that it can blend seemlessly into your site.The results template is a file called results.tpl and it simply needs to contain the HTML that you want to use for the results page with a few special code markers to indicate where the actual results values should be inserted into the page.

The following is a list of the values that you can place anywhere in the page to use as placeholders for where you want the corresponding content to be displayed in the results page:

The results template must also contain two {loop} markers around the section of code that is to be repeated to display each result. The following is a list of optional values that you can place between the two {loop} tags to use as placeholders for the actual values associated with an individual result entry:


This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow