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

 

Related Pages

Search this space

 

Most popular tags

Failed to execute the [groovy] macro
  1. access rights
  2. activity stream
  3. annotation
  4. attachment
  5. comment
  6. Document Tree Macro
  7. export
  8. Extension Manager
  9. Flamingo skin
  10. global user
  11. Groovy event listener
  12. group
  13. nested page
  14. search
  15. skin
  16. syntax
  17. user
  18. user profile
  19. velocity macros
  20. wiki
  21. wysiwyg
  22. XWiki Applications
  23. xwikiattachment_archive table
  24. xwikiattachment table
  25. xwikiattrecyclebin table
  26. xwikiproperties table

[Display all tags from this space]