Jump to main content Jump to doc navigation

AdvSearch'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

  1. AdvSearch.AdvSearch
    1. AdvSearch.AdvSearch.containerTpl
    2. Advsearch.AdvSearch.extractTpl
    3. AdvSearch.Advsearch.paging1Tpl
    4. AdvSearch.AdvSearch.paging0Tpl
    5. AdvSearch.AdvSearch.tpl
  2. AdvSearch.AdvSearchForm
    1. Advsearch.AdvSearchForm.tpl
  3. AdvSearch.AdvSearchHelp
    1. AdvSearch.AdvSearchHelp.helplinkTpl

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

  • modmore
  • Jens Wittmann – Gestaltung & Entwicklung
  • deJaya
  • Digital Penguin
  • Following Sea
  • YJ
  • Sepia River Studios
  • Dannevang Digital
  • eydolan
  • Nick Clark
  • Lefthandmedia
  • Murray Wood

Budget

$212 per month—let's make that $500!

Learn more