Gallery.GalleryAlbums.containerTpl
Created by Thomas Jakobi on Oct 30, 2013.
This is a user-contributed Extra. If you find issues or would like more info or help, please contact the author.
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> `:else=`<div> [[+albums]] </div>`]]
See Also
- Gallery.Gallery
- Gallery.GalleryAlbums
- Gallery.GalleryItem
- Gallery.Plugins
- Gallery.Roadmap
- Gallery.Setting Up Your Gallery
- Gallery.Example1
- Gallery.Setting Up the GalleryItem TV
Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).