ZipExplorer Plugin

This application is bundled with:
  • XWiki Enteprise
  • XWiki Enterprise Manager
  • XWiki Watch
Plugin developed by the XWiki Development Team.
This plugin cannot currently be downloaded separately.

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

To use the plugin in your wiki, you'll need to write some Velocity code to integrate it where you want to use it, as shown below.

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

Tags:
Created by LuisArias on 2007/04/08 19:15
Last modified by Thomas Mortagne on 2007/12/10 18:40

This wiki is licensed under a Creative Commons license
2.2.1.27354