containerTpl
Last updated Mar 6th, 2021 | Page history | Improve this page | Report an issue
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.
Backers
Budget
$311 per month—let's make that $500!
Learn moreGalleryAlbums' 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¶
- Gallery.Gallery
- Gallery.Gallery.thumbTpl
- Gallery.GalleryAlbums
- Gallery.GalleryAlbums.containerTpl
- Gallery.GalleryItem
- Gallery.GalleryItem.tpl
- Gallery.Plugins
- Gallery.Plugins.Slimbox
- Gallery.Setting Up Your Gallery
- Gallery.Example1
- 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.
Backers
Budget
$311 per month—let's make that $500!
Learn more