Lightbox Macro
Displays an image slideshow in a lightbox |
Type | XAR |
Category | |
Developed by | xwiki:XWiki.simba, Oana Florea |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
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 Elena Oana Tabaranu.
Usages
You can select it from the WYSIWYG editor:
Or you can use the following syntax.
A single image
A group of images
{{lightbox image="cat2.jpg" group="g0" /}}
Param | Description |
---|---|
image(required) | An url or the attached image file. For example, "cat.jpg" or "xwiki:Space.Page@cat.jpg" or "http://www.google.com/logos/wateronmoon09-hp.gif" |
title | A short description |
width | The width of the image. |
height | The height of the image. |
group | A string that identify it as a member of a group. A group of images can be viewed as a series of slides. |
Prerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.
You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:
- Log in the wiki with a user having Administration rights
- Go to the Administration page and select the Import category
- Follow the on-screen instructions to upload the downloaded XAR
- Click on the uploaded XAR and follow the instructions
- You'll also need to install all dependent Extensions that are not already installed in your wiki
Release Notes
v1.4
Version 1.4 adds capability for this macro to accept image in the same layout like the image syntax. E.g. "xwiki:Space.Page@image.png".