Version 3.1 by Marius Dumitru Florea on 2011/03/11 09:16
A simple image gallery. Images are collected from the macro content and displayed using a slide-show view. |
Type | javamacro |
Category | |
Developed by | Unknown |
Rating | |
License | Unknown |
Table of contents
Description
Usage
{{gallery}}
image:alice.png
image:Space.Page@bob.jpg
image:http://www.xwiki.org/logo.png
{{/gallery}}
image:alice.png
image:Space.Page@bob.jpg
image:http://www.xwiki.org/logo.png
{{/gallery}}
Shortcut Keys
$xwiki.ssx.use("platform:Features.KeyboardShortcuts")
← | 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}}
{{gallery}}
#foreach($attachment in $doc.attachmentList)
#if($attachment.isImage())
image:$attachment.filename
#end
#end
{{/gallery}}
{{/velocity}}