ZipExplorer Plugin
A plugin that intercepts XWiki download requests so that it's possible to display contents found inside attached ZIP files.Installation
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
Example
The following example lists the files in an attached zip file containing freely distributable images. The file names may be viewed by clicking on them.1.1.1 Content Of Attached Zip File #set($attachment="open_collection-0.0.zip") #set($zipexplorer=$xwiki.zipexplorer) #foreach($file in $zipexplorer.getFileTreeList($doc, $attachment)) - <a href="$zipexplorer.getFileLink($doc, $attachment, $file.id)">$file.id</a> #end
Result
Contents Of Attached Zip File
Version 5.1 last modified by ThomasMortagne on 10/12/2007 at 18:40
Comments: 0