Displays a formattable list of topic attachments, anywhere in a topic.
View permissions are honored: if the user is not allowed to view the referring topic, the attachments are not displayed.
Topic name to show attachments of. Possible values: • one topic • a comma-separated list of topic names • a wildcard * to search in all topics in the web; exclude topics using excludetopics
Comma-separated list of topic names to not show the attachments of
none
excludetopic="WebPreferences, WebHome"
web
Web name to show attachments of. Possible values: • one web • a comma-separated list of web names • a wildcard * to search in all webs; exclude topics using excludeweb
the current web
web="TWiki", web="TWiki, Main", web="*"
excludeweb
Comma-separated list of web names to not show the attachments of
none
web="*" excludeweb="TWiki"
limit
The maximum number of files to display. This setting has no cosequences for rendering time.
no limit
limit="10"
format
Format string; use the format in the table below. To render images, use format parameter $imgTag (see also plugin setting IMAGE_FORMAT).
Plugin setting FORMAT or IMAGE_FORMAT
format=" * [[$fileUrl][$fileName]]" To create a list of images, use: extension="jpg,jpeg,gif" format=" * <a href='$fileUrl'>$imgTag</a>"
separator
String to separate listed entries
none
separator=","
header
A header text in case of hits
no header
header="All files:"
footer
A footer text in case of hits
no footer
footer="Number of files: $fileCount"
alt
Alternative text if nothing is found
none
alt="No files found"
hide
Set to "on" to show only non-hidden attachments
by default the 'hidden' property is ignored
hide="on"
filter (deprecated)
Use extension
extension
Comma-separated list of file extensions to be listed
none
extension="gif, jpg"
excludeextension
Comma-separated list of file extensions to not show
none
excludeextension="htm"
excludefile
Comma-separated list of filenames to not show, possibly generated from a search
none
excludefile="ReadMe.txt"
sort
Sorts the retrieved attachments on either name, date or user. The sort order can be specified with parameter sortorder.
no sort
sort="$fileName"
sortorder
Lists sorted attachments: ascending or descending
The default sort order depends on the sort type: • sort on $fileDate: descending (latest file first) • sort on $fileName or $fileUser: ascending (alphabetically)
sortorder="ascending"
fromdate, todate
Date filter: show attachments between fromdate and todate; dates are specified in format yyyy/mm/dd • fromdate="" todate="2007/09/01" selects all attachments up to 1 Sep 2007 • fromdate="2007/12/01" todate="" selects all attachments up from 1 Dec 2007
Optionally, if it exists, run AttachmentListPlugin_installer to automatically check and install other TWiki modules that this module depends on. You can also do this step manually.
Alternatively, manually make sure the dependencies listed in the table below are resolved. None
Visit configure in your TWiki installation, and enable the plugin in the {Plugins} section.
Arthur Clemens: integrated sort options by TWiki:Main.RohanMoitra. Renamed FileListPlugin to AttachmentListPlugin; changed FILELIST (now deprecated) to ATTACHMENTLIST.
21 Nov 2007 - v.0.9.3
Arthur Clemens: added rendering of images; added $fileExtensions and limit.
20 Nov 2007 - v.0.9.2
Arthur Clemens: deprecated filter in favor of extensions; added more options.