Dashboard > Confluence User Guides and Documents > ... > Working with Macros > Gallery Macro
Gallery Macro Log In   View a printable version of the current page.

Added by vidya, last edited by smaddox on Sep 05, 2007  (view change)
Labels: 

You need to edit in 'Wiki Markup' mode to include macros in your page.

The Gallery Macro creates a gallery of thumbnails from all the images that are attached to a page and displays them in a tabular format. Clicking on the thumbnail opens up the full-size image in a new window. You can also view the images as a slideshow by clicking the 'View as Slideshow' link located below the title.

You can specify a title for the gallery and also configure how many columns you want for the table in which your images are displayed. Confluence automatically displays the corresponding comment below the image.

Confluence only creates thumbnails of images in these file formats:gifs, pngs and jpegs. The bmp format is not supported.

To use the gallery macro, simply include the following markup in your page and replace the title with your own.

Gallery Macro

What you need to type
{gallery:title=Some office photos, and a waterfall}{gallery}
What you will get

Some office photos, and a waterfall
(view as slideshow)
         
       
 
         
  Here is the waterfall photo       Here's an office photo
 


The default number of columns for the table is 4.


Optional Parameter

No  parameter Default Description
 1 columns 4 Specify the number of columns for your table
 2 slideshow true Disable slide show option

Specify the number of columns for your table

{gallery:columns=3|title=Some office photos, and a waterfall}{gallery}

Disable slide show option

By default, Confluence displays the link to view the images as a slideshow. To disable this link, include the following code within the macro:

{gallery:slideshow=false}
RELATED TOPICS

Displaying an Image
Thumbnail Macro
Attaching Files to a Page
Editing Attachment Details
Working with Macros

Take me back to Confluence User Guide

DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.1 Build:#916 Nov 09, 2007) - Bug/feature request - Contact Administrators