File download downloads

On this page:

Syntax

<txp:file_download_downloads />

The file_download_downloads tag is a single tag that Textpattern will replace with the number of times the current file has been downloaded. Should be used in Textpattern ‘file’ type Form templates.

Attributes

This tag has no attributes.

Examples

Example 1: Display the number of downloads

<p>
    Downloads:
    <txp:file_download_downloads />
</p>

Example 2: Display the number of downloads of a particular file

<txp:file_download_list id="1">
    <p>
        <txp:file_download_name />
        downloaded
        <txp:file_download_downloads />
        times.
    </p>
</txp:file_download_list>

Other tags used: file_download_list, file_download_name.

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.