Jump to main content Jump to doc navigation


Other versions: 2.x (current) — Found a problem? Please edit this page or report an issue.

This is an example usage of Gallery. This page will first show a list of Gallery Albums, then once clicked, will load all the photos from that album. When a photo is clicked, it will show in large-form.

Simply paste this code into your Resource.

[[!Gallery? &toPlaceholder=`gallery`]]
[[!GalleryAlbums? &toPlaceholder=`galleries`]]

<div style="float: right">


<div class="image">
   <a href="[[+galitem.image]]"><img class="[[+galitem.imgCls]]" src="[[+galitem.image]]" alt="[[+galitem.name]]" /></a>
   <br />Albums: [[+galitem.albums]]
   <br />Tags: [[+galitem.tags]]

<hr />

   <h1><a href="[[~[[*id]]]]">[[+gallery.name]]</a></h1>