Gallery Macro

The Gallery macro displays an image gallery using attached files or images located at external URLs.

Usage

{{gallery class="<CSS Class>" height="<heightValue>px" width="<widthValue>px" }}
image://relative path to attached image//
{{/gallery}}

OR

{{gallery}}
image://link to external URL
{{/gallery}}

Parameters

NameOptionalDescriptionAccepted Values
classYesCustom CSS class name to apply on the gallery container in order to customize the appearance of a gallery instance.
heightYesThe gallery height - empty value means there is no explicit height set.349px
widthYesThe gallery width - empty value means there is no explicit width set.620px

Examples

Display the images attached to "Main.WebHome"

{{gallery}}
image:xwiki:Main.WebHome@Tulips.jpg
image:xwiki:Main.WebHome@Desert.jpg
{{/gallery}}

will display

GalleryMacro.png

Display all images visible on a page

You can display the images visible on another page by using the Display macro inside the Gallery macro.

{{gallery}}
{{display reference="Main.Team"/}}
{{/gallery}}

Display images from an RSS feed

You can display the images from an RSS feed by using the RSS macro inside the Gallery macro.

{{gallery}}
{{rss feed="http://api.flickr.com/services/feeds/photos_public.gne?format=rss_200&tags=xwiki" content="true" decoration="false" /}}
{{/gallery}}

Display images attached to the current page

To do so, you can use the Attachment Gallery macro which extends the Gallery macro.

Keyboard Shortcuts

KeyFunctionality
Display the previous image
Display the next image
HomeDisplay the first image
EndDisplay the last image
FToggle full-screen view
EscExit full-screen view

 

Search this space