Jump to main content Jump to doc navigation

GalleryItem's albumTpl Chunk

This chunk is used for each Album associated with the Item pulled by the GalleryItem snippet, via the &albumTpl property.

Default Value

<span class="gal-item-album"><a href="[[~[[*id]]]]?[[+albumRequestVar]]=[[+id]]">[[+name]]</a></span>

Available Placeholders

Name Description
id The ID of the Album.
name The name of the Album.
parent The parent ID of the Album. Defaults to 0.
description The description of the Album.
createdon A timestamp of when the Album was created.
createdby The ID of the User that created this Album.
rank The 'rank', or order, in which this Album is stored as.
active Whether or not this Album is marked "Active". Can be 1 or 0.
prominent Whether or not this Album is marked "Prominent". Can be 1 or 0.
albumRequestVar The albumRequestVar parameter passed to the GalleryItem snippet. Defaults to galAlbum.

See Also

  1. Gallery.Gallery
    1. Gallery.Gallery.containerTpl
    2. Gallery.Gallery.thumbTpl
  2. Gallery.GalleryAlbums
    1. Gallery.GalleryAlbums.containerTpl
    2. Gallery.GalleryAlbums.rowTpl
  3. Gallery.GalleryItem
    1. Gallery.GalleryItem.albumTpl
    2. Gallery.GalleryItem.GalleryItemPagination
    3. Gallery.GalleryItem.tagTpl
    4. Gallery.GalleryItem.tpl
  4. Gallery.Plugins
    1. Gallery.Plugins.Galleriffic
    2. Gallery.Plugins.Slimbox
  5. Gallery.Setting Up Your Gallery
  6. Gallery.Example1
  7. Gallery.Setting Up the GalleryItem TV

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.


  • modmore
  • Jens Wittmann – Gestaltung & Entwicklung
  • Raffy
  • Digital Penguin
  • eydolan
  • deJaya
  • Following Sea
  • Sepia River Studios
  • Fabian Christen
  • Dannevang Digital
  • Anton Tarasov
  • Nick Clark
  • Lefthandmedia
  • Murray Wood
  • YJ
  • Chris Fickling
  • CrewMark
  • Richard


$292 per month—let's make that $500!

Learn more