Jump to main content Jump to doc navigation

Archivist's tpl Chunk

This is the Chunk displayed with the &tpl property on the Archivist snippet.

Default Value

<li class="[[+cls]]">
    <a href="[[+url]]" title="[[+date]]">[[+date]]</a> ([[+count]])
</li>

Available Placeholders

Name Description
url The URL that will go to the appropriate archive.
cls The CSS class to use, specified as a property in the Archivist snippet call.
date The formatted time span that is being archived.
count The number of Resources in the 'date'.
month The number month. (01,07,11,etc)
month_name The name of the month.
month_name_abbr The abbreviated name of the month.
year The 4-digit year.
day The numeric of the day (01,24,31,etc)
day_formatted The day, with a postfix 'th', 'rd' or 'nd'. (1st, 2nd, 3rd)
weekday The name of the weekday.
weekday_idx The index of the weekday.

See Also

  1. Archivist snippet
    1. Archivist tpl
  2. Archivist ArchivistGrouper snippet
  3. Archivist getArchives snippet
    1. Archivist getArchives tpl

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
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • Chris Fickling
  • CrewMark
  • deJaya
  • eydolan
  • Following Sea
  • Lefthandmedia
  • Murray Wood
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • Nick Clark
  • A. Moreno
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

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

Learn more