File download modified

On this page:

Syntax

<txp:file_download_modified />

The file_download_modified tag is a single tag that Textpattern will replace with the last modified date of the file to download. Should be used in Textpattern ‘file’ type Form templates.

Attributes

Tag will accept the following attributes (case-sensitive):

format="format string"
Override the default date format set in the Preferences panel.
Values: any valid strftime string values, since, iso8601 (ISO 8601 reference), w3cdtf (W3CDTF reference), or rfc822 (RFC 822 reference).
Default: the ‘Archive date format’ set in preferences.

Examples

Example 1: Display formated file modified date

<p>
    File last modified:
    <txp:file_download_modified format="%D" />
</p>

Returns the file creation date in the format mm/dd/yy.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.