Version 12.1 by Thomas Mortagne on 2011/10/27 18:02
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

cogDisplays an image gallery
Typejavamacro
Category
Developed byUnknown
Rating
3 Votes
LicenseUnknown

Description

Images are collected from the macro content and displayed using a slide-show view.

Usage

{{gallery}}
image:alice.png

image:Space.Page@bob.jpg

image:http://www.xwiki.org/logo.png
{{/gallery}}

Shortcut Keys

Display previous image

Display next image

Home

Display first image

End

Display last image

F

Toggle full-screen view

Esc

Exit full-screen view

Examples

Displays all the images attached to the current page

{{velocity}}
{{gallery}}
#foreach($attachment in $doc.attachmentList)
  #if($attachment.isImage())
    image:$attachment.filename
  #end
#end
{{/gallery}}
{{/velocity}}

Result:

screenshot.png

Displays images from a RSS feed

Example using a Flickr feed.

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

The decoration="false" parameter is only available in XWiki 3.2+

Result:

flickrrss.png

Get Connected