I am experimenting with the gallery addon documented here:
http://rtfm.modx.com/display/ADDON/Gallery
I’m using modx-2.1.2-pl and gallery version 1.2.1
After installing the addon, I can access and edit the settings that appear in the ’components’ menu.
I have no problem editing and saving a gallery.
I’ve created a gallery and marked it ’active’ and ’prominent’.
I’ve followed the directions here:
http://rtfm.modx.com/display/ADDON/Gallery.Setting+Up+Your+Gallery
So, I now have a gallery with the id ’1’.
This is the code for my resource. Most of it is simply copied from the documentation from the set up guide.
<h1>In Frontpage</h1>
<p> </p>
<p>Here, we will test a gallery.</p>
<div style="float: right">
<h2>Galleries</h2>
<ul>
[[!GalleryAlbums]]
</ul>
</div>
<h2>Item</h2>
[[!GalleryItem]]
[[!+galitem.image:notempty=`
<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]]
</div>
`]]
After clearing the cache and reloading the site, I can’t see anything.
Looking at the sites source code, I can see that the code above is being output into the resource. However, no images are being shown.
What have I missed?