Version 8.1 by Vincent Massol on 2010/12/09 11:03

cogIntercepts attachment download requests to display contents found inside attached ZIP files
TypePlugin
Category
Developed byUnknown
Rating
0 Votes
LicenseUnknown

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

Activate the plugin by editing your WEB-INF/xwiki.cfg file as follows and restart your XWiki instance:

xwiki.plugins=[...],com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin
Tags:
Created by LuisArias on 2007/04/08 19:15
    

Get Connected