[[gallery.album]]

Available Since: V1.0.0

Snippet to draw the contents of an album.

Parameter Description
album The ID of the album to draw, if omitted and the snippet is on a gallery page then the album associated with that page will be drawn.
lightbox 0 if the lightbox functionality should be disabled, defaults to 1.
withLink 1 if album images should link to the image detail page, defaults to 0.
albumCls CSS class to apply to the default <ul> container of the image list, defaults to galleryalbum.
size The size of image to use in the album, one of t (tiny), s (small), m (medium), l (large), defaults to m.
sortBy Sort images by `position`, `added` or `title` defaults to `position`.
order Sort order `DESC` or the default `ASC`
useGrid If set to `1` then use the CSS framework grid to layout the images; defaults to `0`.
wrapperTpl The chunk to use to wrap the image list. If useGrid is 1 then the chunk gallery.gridWrap is used.
exclude Comma separated list of image IDs to exclude from the thumbnail view.
limit Limit the display to the given number of images, e.g. limit=`4` will display the first 4 images found.
itemTpl The chunk to wrap each image in. If useGrid is 1 then the chunk gallery.gridItem is used.
depth Optional depth of nested albums to descend to, 0 for unlimited.

Default wrapperTpl Chunk

<ul class="[[+albumCls]]">[[+images]]</ul>
Placeholder Description
albumCls The CSS class set by the albumCls parameter.
images The HTML for the images being drawn.

Default itempTpl Chunk

<li>[[if &subject=`[[+link]]` &operator=`!empty` &then=`
	<a href="[[+link]]"><img src="[[+src]]" alt="[[+title]]" /></a>
` &else=`
	<img src="[[+src]]" alt="[[+title]]" />
`]]</li>
Placeholder Description
 id The ID of the image being rendered. 
link The address of page holding the full size image.
src The address of the image to display.
title The title of the image.
menutitle The menu title of the image or if not given the title.
size The size of the image.
desc The description for the image.
shortdesc The short description of the image.
tags The tags for the image.
added The date and time that the image was added to the album.
uri The address stored with the image.




TOP