tpl
Last updated Apr 29th, 2019 | 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
$311 per month—let's make that $500!
Learn moreAdvSearch's tpl Chunk¶
A Chunk named "AdvSearchResult" is provided with AdvSearch. This Chunk name is set as &tpl property on the AdvSearch snippet.
Default Value¶
<div class="advsea-result">
<h3>[[+idx]]. <a href="[[+link:is=``:then=`[[~[[+id]]]]`:else=`[[+link]]`]]" title="[[+longtitle]]">[[+pagetitle]]</a></h3>
<div>[[+extracts]]</div>
</div>
Available Placeholders¶
Name | Description |
---|---|
idx | Number of result. could be use inside the AdvSearchResult chunk to alternate class. |
link | By setting this placeholder you override the Resource id as url target |
id | The resource id used as url target |
extracts | The extracts |
but also
Name | Description |
---|---|
fieldName | Any field value from the list of fields provided by the field parameter. |
TVName | Any TV value from the list of TV provided by the withTVs and includeTVs parameter. |
See Also¶
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
$311 per month—let's make that $500!
Learn more