txp:file_download_link

The file_download_link tag is a Container Tag, Textpattern will replace this tag with a download link. The container tags wrap the text or tag assigned to the link.

Syntax

The file_download_link tag has the following syntactic structure…

<txp:file_download_link> ...your content here... </txp:file_download_link>

Attributes

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

filename="Text"

name of file to download

id="Integer"

id of the file to download

Note: id takes precedence over filename, if neither is defined nothing is returned.

Examples

File download link id #1

<txp:file_download_link id="1">
<txp:file_download_name /> [<txp:file_download_size format="auto" decimals="2" />]
</txp:file_download_link>

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_link.txt · Last modified: 2008/02/05 16:47 by hcgtv

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