%FILELIST%
- default rendering
%FILELIST{format="..." web="webname" topic="topicname"}%
- with specified format/web/topic
Parameter | Comment | Example |
---|---|---|
topic |
Topic name to show attachments of | FileListPlugin |
web |
Web name of topic |
TWiki |
filter |
Comma separated list of file extensions to be listed | gif,jpg |
format |
Format string. Use the format in the table below | |
hide |
Wether FileListPlugin should hide the attachments marked as hidden. Disabled by default, set to "yes", "on" or "1" to enable |
Format parameter | Comment |
---|---|
$hidden |
'hidden' if the attachment is hidden, nothing otherwise |
$fileComment |
Attachment comment |
$fileSize |
File size |
$fileActionUrl |
Full path of management URL for this file (for changing properties etcetera) |
$viewfileUrl |
Full path with viewfile as script name |
$fileIcon |
Icon image representing this file type (see TWikiDocGraphics) |
$br |
<br /> tag |
$fileName |
Name of the file |
$n |
newline character |
$fileUrl |
URL of the file, assumes ATTACHURL path |
$fileDate |
When submitted |
$fileUser |
Who submitted |
%FILELIST{format="| $fileIcon | [[$fileUrl][$fileName]] ($fileSize) | Submitted by $fileUser on $fileDate | $fileComment |<span class='twikiGrayText'>[[$fileActionUrl][manage]]</span> |" web="%TWIKIWEB%" topic="FileAttachment"}%Output (if installed):
Sample.txt (30b) | Submitted by TWikiContributor on 22 Jul 2000 - 16:37 | Just a sample | manage | |
Smile.gif (94b) | Submitted by TWikiContributor on 22 Jul 2000 - 16:38 | Smiley face | manage |
* Set FORMAT = $n * [[$fileUrl][$fileName]] $fileComment
FileListPlugin.zip
in your root ($TWIKI_ROOT) directory. Content: File: | Description: |
---|---|
data/TWiki/FileListPlugin.txt | |
lib/TWiki/Plugins/FileListPlugin.pm |
FileListPlugin_installer
to automatically check and install other TWiki modules that this module depends on. You can also do this step manually.
configure
in your TWiki installation, and enable the plugin in the {Plugins} section.
Authors: | TWiki:Main.VinodKulkarni, TWiki:Main.SopanShewale (2006), TWiki:Main.ArthurClemens (2006) |
Copyright ©: | TWiki:Main.VinodKulkarni, TWiki:Main.SopanShewale (2006), TWiki:Main.ArthurClemens (2006) |
License: | GPL |
Dependencies: | None |
17 Dec 2006 - v.0.8 | TWiki:Main.ArthurClemens: reworked for TWiki 4.1 and optimized; activated filter parameter, added topic view permission check. |
03 Mar 2006 - v.0.7 | TWiki:Main.SopanShewale: reworked for TWiki 4 |
11 Apr 2005 - v.0.6 | TWiki:Main.VinodKulkarni: Initial version |
Home: | http://TWiki.org/cgi-bin/view/Plugins/FileListPlugin |
Feedback: | http://TWiki.org/cgi-bin/view/Plugins/FileListPluginDev |
Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/FileListPluginAppraisal |