<txp:search_result_excerpt /> single tag, 3 attributes

search_result_excerpt

The search_result_excerpt tag is a single tag. The tag will show the occurence of the search term with some surrounding context.

attributes

limit="5" (integer)
  • Maximum number of search match excerpts per search result.
hilight="strong" 
  • HTML tag to be used for search term matches in excerpt text, without brackets.
break="..." 
  • Trailing string.

genealogy

Version 4.0.6

  • break added
<txp:search_result_excerpt /> 1 examples

Display up to 15 search excerpts with a search results form

<h3><txp:permlink><txp:title /></txp:permlink></h3>
<p><txp:search_result_excerpt hilight="p" limit="15" />
<small><txp:permlink><txp:permlink /></txp:permlink> ยท <txp:posted /></small></p>