fileTpl
Last updated Jan 17th, 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
$280 per month—let's make that $500!
Learn moreFileLister's fileTpl Chunk¶
This is the Chunk displayed with the &fileTpl property on the FileLister snippet.
Default Value¶
<tr class="[[+cls]]">
<td class="feo-filename">[[+link]]</td>
<td class="feo-filesize">[[+filesize]]</td>
<td class="feo-lastmod">[[+lastmod:date=`[[+dateFormat]]`]]</td>
</tr>
Available Placeholders¶
| Name | Description |
|---|---|
| link | The link to view or download the file. |
| filename | The basename of the file. |
| filesize | The filesize, formatted. |
| bytesize | The size in bytes of the file. |
| extension | The file extension of the file. |
| lastmod | The last modified date, in timestamp format. |
| dateFormat | The dateFormat string passed into the FileLister snippet. |
| path | The absolute path to the file. |
| relativePath | The relative path to the 'path' property passed into the FileLister snippet. |
| navKey | The navKey being used for link generation. |
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
$280 per month—let's make that $500!
Learn more










