Fancybox Macro

Last modified by slauriere on 2022/02/28 00:10

cogDisplays a set of images as a gallery using the Fancybox library.
TypeXAR
CategoryMacro
Developed by

slauriere

Active Installs5
Rating
0 Votes
LicenseGNU General Public License 3.0

Installable with the Extension Manager

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.).

{{fancybox width="500px"}}
[[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

NameDescriptionMandatoryDefault
widthGallery container maximum width in pixels when displayed as a block within the page (as opposed to an overlay).No
heightGallery block maximum height in pixels.No
classGallery 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:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. 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
Tags:
    

Get Connected