txp:file_download

The file_download tag is a Single Tag. Textpattern will replace this tag with a file download form. Page Column.

Syntax

The file_download tag has the following syntactic structure…

<txp:file_download />

Attributes

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

form="form name"

Use specified form. Default is files. See Form.

id="integer"

File id of the file to link to. Default is unset, nothing is returned.

filename="filename"

Filename of the file to link to. Default is unset, nothing is returned.

Examples

Display a download form for the file to be downloaded

<txp:file_download form="files" id="1" />

Default "files" form

<txp:text item="file" />: 
<txp:file_download_link>
<txp:file_download_name /> <txp:file_download_size format="auto" decimals="2" />
</txp:file_download_link>
<br />
<txp:text item="category" />: <txp:file_download_category /><br />
<txp:text item="download" />: <txp:file_download_downloads />

Other tags used: <file_download_category />, <file_download_downloads />, <file_download_link />, <file_download_name />, <file_download_size />, <text />

txp/file_download.txt · Last modified: 2008/02/05 16:39 by hcgtv

Home Page | User Forums | Driven by DokuWiki
Copyright © 2008 xPattern