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

Version 5.1 last modified by ThomasMortagne on 10/12/2007 at 18:40

Comments 0

No comments for this document

Attachments 1

ZIP
open_collection-0.0.zip 1.2
PostedBy: LuisArias on 09/12/2007 (87kb )

Creator: LuisArias on 2007/04/08 19:15
This wiki is licensed under a Creative Commons license
1.4.1.10194