This documentation relates to an earlier version of Confluence.
View this page in the current documentation or visit the current documentation home.

Gallery Macro

Skip to end of metadata
Go to start of metadata
All Versions
Table of Contents

(info) 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


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


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:

RELATED TOPICS

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

Take me back to Confluence 2.0 Home



Log a request with our support team.



Raise an issue for our developers.



See answers from the community.



Tweet, blog and update our documentation.

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5 Australia License.