Go to main content

File download modified

Contents

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) as well as the global attributes :

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.

If you notice any kind of problem with this page’s construction or content (outdated information, typos, broken links, or whatever), open an issue to have it sorted. Or have a go at it yourself. :)