ZIP Explorer Plugin
Version 12.1 by Thomas Mortagne on 2011/10/27 18:12
![]() | Intercepts attachment download requests to display contents found inside attached ZIP files |
Type | Plugin |
Category | |
Developed by | Unknown |
Rating | |
License | Unknown |
Table of contents
Description
Example
The following example lists the files in an attached zip file. The file content may be viewed by clicking on the generated links.
{{velocity}}
#set($attachment="sample.zip")
#set($plugin=$xwiki.zipexplorer)
#foreach($file in $plugin.getFileTreeList($doc, $attachment))
* {{html}}<a href="$plugin.getFileLink($doc, $attachment, $file.id)">$file.id</a>{{/html}}
#end
{{/velocity}}
#set($attachment="sample.zip")
#set($plugin=$xwiki.zipexplorer)
#foreach($file in $plugin.getFileTreeList($doc, $attachment))
* {{html}}<a href="$plugin.getFileLink($doc, $attachment, $file.id)">$file.id</a>{{/html}}
#end
{{/velocity}}
Result
Prerequisites & Installation Instructions
For this plugin replace:
- <plugin package> by ccom.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin
- <plugin name> by zipexplorer