blob: 71499a544a7e872926dfa027a7d56e5e24fdcce7 [file] [log] [blame]
Includes the body if a search has been performed. This tag will also include the body in case there were ''no'' hits. You can use the [IfNoSearchResults Tag] to check the number of hits.
----
!Usage
{{{
<wiki:SearchResults>
HTML or JSP tags
</wiki:SearchResults>
}}}
!Parameters
None.
!Example
{{{
<wiki:SearchResults>
<h4>Search Results</h4>
<p>
<i>Found <wiki:SearchResultsSize/> hits, here are the top 20.</i>
</p>
<wiki:SearchResultIterator id="searchref" maxItems="20">
<wiki:LinkTo><wiki:PageName/></wiki:LinkTo>&nbsp;
<%=searchref.getScore()%>
</wiki:SearchResultIterator>
<wiki:IfNoSearchResults>
<b>No results</b>
</wiki:IfNoSearchResults>
</wiki:SearchResults>
}}}