Quote from: rixe at Sep 23, 2010, 03:39 PM
terobot, would you show me your whole snippet call?
Rixe, I tried a couple of methods of calling the snippet. In the first instance, I simply pasted the code from GalleryExample1 in the Wiki into my resource which I’ve shown below.
[[!Gallery? &toPlaceholder=`gallery`]]
[[!GalleryItem]]
[[!GalleryAlbums? &toPlaceholder=`galleries`]]
<div style="float: right">
<h2>Galleries</h2>
<ul>
[[+galleries]]
</ul>
</div>
<h2>Item</h2>
[[!+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>
`]]
<hr />
[[!+gallery:notempty=`
<h1><a href="[[~[[*id]]]]">[[+gallery.name]]</a></h1>
<h2>[[+gallery.description]]</h2>
[[+gallery]]
`]]
I have two albums loaded. One called Photoshoot and another called Test. Now when I visit the page where the above snippet has been pasted in
http://www.highondance.com.au/index.php?id=13 I see no thumbnails. Presumably, I’m meant to see two thumbnails - one for each album? But when I specify the album ID in the URL
http://www.highondance.com.au/index.php?id=13&galAlbum=2 then the gallery works fine for that album - thumbnails appear with their enlarged images.
So I decided to work with a bare bones version of the snippet calls and created a new resource
http://www.highondance.com.au/index.php?id=21 which only contains the following:
[[!Gallery? &album=`photoshoot`]]
[[!GalleryAlbums?]]
[[!GalleryItem]]
<div style="clear:both;"></div>
The aim here was simply just to get my Photoshoot album appearing with their thumbs and enlarged images. Thumbnails appear but lead nowhere. So basically, here’s my problem... I’d like to have a standard gallery setup, ie. Main Gallery Page>Albums>List of Image Thumbs>Click to enlarge. If I use GalleryExample1, I get nothing on the main gallery page but the rest of it (Albums>List of Image Thumbs>Click to enlarge ) works ok. If I use the basic snippet call above, I can’t even get the image thumbs to enlarge, let alone set up a main gallery page with a list of Albums.
Once I get this working, I’ll start on the lightbox