ZIP Explorer Plugin

Version 13.1 by Thomas Mortagne on 2011/10/27 19:24

cogIntercepts attachment download requests to display contents found inside attached ZIP files
TypePlugin
Category
Developed byUnknown
Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

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}}

Result

zipexplorer.png

Prerequisites & Installation Instructions

For this plugin replace:

  • <plugin package> by ccom.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin
  • <plugin name> by zipexplorer
Tags:
    

Get Connected