Jump to main content Jump to doc navigation

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

  1. FileLister.FileLister
    1. FileLister.FileLister.directoryTpl
    2. FileLister.FileLister.fileLinkTpl
    3. FileLister.FileLister.fileTpl
    4. FileLister.FileLister.pathTpl

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