<txp:file_download /> single tag, 3 attributes

file_download

The file_download tag is a single tag which Textpattern will replace with a file download form. Inside that form go the other.

attributes

form="files" 
  • Use the specified form.
id="unset" (integer) 
  • File id of the file to link to.
filename="unset" 
  • Filename of the file to link to.
<txp:file_download /> 1 examples

Display a download form

<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="b" 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