tpl
Last updated Mar 6th, 2021 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn moreSimpleSearch's tpl Chunk¶
This is the Chunk displayed with the &tpl property on the SimpleSearch snippet.
Default Value¶
<div class="sisea-result">
<h3>[[+idx]]. <a href="[[+link:is=``:then=`[[~[[+id]]]]`:else=`[[+link]]`]]" title="[[+longtitle]]">[[+pagetitle]]</a></h3>
<div class="extract"><p>[[+extract]]</p></div>
</div>
Available Placeholders¶
Any field on a Resource is available to use as a property, as well as:
Name | Description |
---|---|
extract | If &showExtract is set to 1, this will be the extracted part of the Resource's content where the search term was found. |