tpl
Last updated Apr 22nd, 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 moreArchivist'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. |