Jump to main content Jump to doc navigation

GalleryAlbums' rowTpl Chunk

This chunk is used for each Album iterated through by the GalleryAlbums snippet.

Default Value

<li[[+cls:notempty=``]]><a href="[[~[[*id]]? &[[+albumRequestVar]]=`[[+id]]`]]">[[+showName:notempty=`[[+name]]`]]</a></li>

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 GalleryAlbums snippet. Defaults to galAlbum.
image The link to an image as determined by the GalleryAlbums snippet.

When you use the image placeholder in your template as the source for an image tag, it doesn't seem to obey the thumbnail properties given in the snippet-call. But no worries, you can add them yourself as this image-placeholder is actually a call to phpthumb. So, lets say you want your thumbnail to be 240x160 with zoomcrop, you can do:

<img src="[[+image]]&w=240&h=160&zc=1" alt="[[+name]]" />

See Also

  1. Gallery.Gallery
    1. Gallery.Gallery.containerTpl
    2. Gallery.Gallery.thumbTpl
  2. Gallery.GalleryAlbums
    1. Gallery.GalleryAlbums.rowTpl
  3. Gallery.GalleryItem
    1. Gallery.GalleryItem.albumTpl
    2. Gallery.GalleryItem.GalleryItemPagination
    3. Gallery.GalleryItem.tagTpl
  4. Gallery.GalleryItem.tpl
  5. Gallery.Plugins
    1. Gallery.Plugins.Galleriffic
    2. Gallery.Plugins.Slimbox
  6. Gallery.Setting Up Your Gallery
  7. Gallery.Example1
  8. 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.



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

Learn more