Go to main content

File download downloads

Contents

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 of its own. It accepts only the global 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.

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. :)