Fancybox Macro
Displays a set of images as a gallery using the Fancybox library. |
Type | XAR |
Category | Macro |
Developed by | slauriere |
Active Installs | 5 |
Rating | |
License | GNU General Public License 3.0 |
Table of contents
Description
Displays a set of images as a gallery using the Fancybox library. It is available under license GPL v3.
Usage
Images should be listed in the macro content using the standard XWiki syntax for images. A title and a caption can be associated to each image, including with wiki syntax (links, styling, line breaks etc.).
[[image:gallica-btv1b10052637j-10.jpg||title="Aquarelle on bamboo paper" caption="Source: ~[~[Gallica>>https://gallica.bnf.fr/ark:/12148/btv1b10052637j/f7.item~]~]"]]
[[image:gallica-btv1b10052637j-12.jpg||title="Ut enim ad minim veniam" caption="Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."]]
image:gallica-btv1b10052637j-3.jpg
{{/fancybox}}
Illustration
Parameters
Name | Description | Mandatory | Default |
---|---|---|---|
width | Gallery container maximum width in pixels when displayed as a block within the page (as opposed to an overlay). | No | |
height | Gallery block maximum height in pixels. | No | |
class | Gallery custom CSS class name(s) to be set on the gallery container. | No |
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
Dependencies
Dependencies for this extension (org.xwiki.contrib:xwiki-macro-fancybox 1.0):
- org.webjars.npm:fancyappsfancybox 3.5.5