Lightbox Macro

This is a XWiki macro, which isn't bundled with any XWiki product by default.
Macro contributed by Zhaolin Feng, ElenaOanaTabaranu.
This macro can be downloaded.

Lightbox Macro

A replacement of [[image]]. It creates a slideshow-styled window when clicking the image.

It's a syntax 2.0 macro and can be used in the WYSIWYG editor. It's based on the Lightbox Application created by ElenaOanaTabaranu.

lightbox.jpg

Installation

Login as Admin and use the import utility to import the XAR file.

Usages

You can select it from the WYSIWYG editor.

lightbox2.jpg

Or you can use the following syntax.

A single image

{{lightbox image="cat.jpg" /}}

A group of images

{{lightbox image="cat.jpg" group="g0" /}}
{{lightbox image="cat2.jpg" group="g0" /}}

ParamDescription
image(required)An url or the attached image file. For example, "cat.jpg" or "/xwiki/cat.jpg" or "http://www.google.com/logos/wateronmoon09-hp.gif"
titleA short description
widthThe width of the image.
heightThe height of the image.
groupA string that identify it as a member of a group. A group of images can be viewed as a series of slides.
Tags:
Created by Zhaolin Feng on 2009/11/14 06:52
Last modified by Peer Mueller on 2010/02/02 14:25

This wiki is licensed under a Creative Commons license
2.2.1.27354