txp:file_download_list

The file_download_list tag is a Single Tag which is used to produce a list of download links according to the attributes set in the tag criteria.

Syntax

The file_download_list tag has the following syntactic structure…

<txp:file_download_list />

Attributes

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

category="category name"

Restrict to files from specified category. Default is unset.

status="status"

Restrict to files with specified status. Available values: hidden, pending, live. Default is live.

sort="sort value(s)"

How to sort the resulting list. Available values: id, filename, category, description, downloads, rand() random. Default is filename.

limit="integer"

Number of files to display. Default is 10.

offset="integer"

Number of files to skip. Default is unset.

form="form name"

Use specified form. Default is files.

label="text"

Label for the top of the list. Default is unset.

labeltag="tag"

(X)HTML tag (without brackets) to wrap around label. Default is unset.

wraptag="tag"

(X)HTML tag (without brackets) to wrap around list. Default is unset.

break="value"

(X)HTML tag (without brackets) or string used to separate list items. Default is br.

class="class name"

(X)HTML class attribute to be applied to wraptag. Default is file_download_list.

Examples

Display a styled download link list of ten downloads

<txp:file_download_list limit="10" break="li" wraptag="ul" sort="downloads asc" />

Styles could go this way:

.file_download_list
{
	list-style-type:none;
}
txp/file_download_list.txt · Last modified: 2008/02/05 17:04 by hcgtv

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