Developer manual

searchresults

Customise the search results listing

Updated: Type: springtag

Method

<searchresults option="value"/>

Used in conjunction with the <search/> springtag

Current

Request Attributes

  Attribute Type Description Default Required?
current show option Space separated list of elements to display in the search results
Allowed values: title
description
date
searchresultcount
title description date No

Examples

#1

Request

<searchresults/>

With the search term 'help' the search results are presented as an ordered list.

Response

<div id="searchresults">
	<p>
		<strong>Search Term: </strong> help (1 result)
	</p>
	<p>
		<strong>Sort:</strong>
		<a class="selected" href="/view/search/query/xml/help/sort/relevance">Relevance</a>
		| <a href="/view/search/query/xml/help/sort/date">Date</a>
		| <a href="/view/search/query/xml/help/sort/title">Title</a>
	</p>
	<ol>
		<li>
			<p class="title">
				<a href="/view/help">help</a>
			</p>
			<p class="date"><strong>Updated:</strong> 6 August 2013</p>
			<p>
				<em>Relevance Score: 275</em>
			</p>
		</li>
	</ol>
</div>