File download description

On this page:

Syntax

<txp:file_download_description />

The file_download_description tag is a single tag which Textpattern will replace with the description of the file to download, as defined when the file was uploaded. Should be used in Textpattern ‘file’ type Form templates.

Attributes

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

escape="html"
Escape HTML entities such as <, > and & for the file’s description attributes.
Values: html or unset.
Default: html.

Common presentational attributes

These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.

class="class name"
HTML class to apply to the wraptag attribute value.
Default: unset (see class cross-reference).
wraptag="element"
HTML tag to wrap around description text, specified without brackets (e.g. wraptag="div").
Default: unset.

Examples

Example 1: Display a file’s description

<p>
    File description:
    <txp:file_download_description />
</p>

Other tags used: text.

Genealogy

Version 4.0.7

Default value for escape attribute changed from ‘unset’ to html.

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.