Jump to main content Jump to doc navigation

GalleryAlbums' containerTpl Chunk

This chunk is used for wrapping all albums iterated through by the GalleryAlbums snippet (available with 1.6.0 beta).

Default Value

There is no default value.

Available Placeholders

Name Description
albums The Album rows.
nav.first The ID of the first Album.
nav.prev The ID of the previous Album.
nav.current The ID of the current Album.
nav.next The ID of the next Album.
nav.last The ID of the last Album.
nav.curIdx The index of the current Album.
nav.count The count of the Album rows.
albumRequestVar The albumRequestVar parameter passed to the GalleryAlbums snippet. Defaults to galAlbum.

Example

The following example shows possible placeholders. It displays a previous/next gallery navigation in an album or a gallery overview.

[[+nav.curIdx:ne=`
<div>
    <ul>
        <li>
            [[+nav.prev:notempty=`<a href="[[~[[*id]]? &[[+albumRequestVar]]=`[[+nav.prev]]`]]">Previous Gallery</a>`:else=`<span>Previous Gallery</span>`]]
        </li>
        <li>
            <a href="[[~[[*id]]]]">Overview</a>
        </li>
        <li>
            [[+nav.next:notempty=`<a href="[[~[[*id]]? &[[+albumRequestVar]]=`[[+nav.next]]`]]">Next Gallery</a>`:else=`<span>Next Gallery</span>`]]
        </li>
    </ul>
    <div>Gallery [[+nav.curIdx]] of [[+nav.count]]</div>
</div>
`:else=`
<div>
    [[+albums]]
</div>
`]]

See Also

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