Hi, all. I'm a newbie to SS, and am having some difficulty working with image_gallery.
I'm trying to cause a page to display an album's cover art as well as all the images in the album in a list of thumbnails, with clicking on the cover art or any of the thumbnails bringing up a shadowbox via shadowbox.js. I am able to access the thumbnails, but not the album's cover art.
Code below:
HTML code, using a page that extends ImageGalleryPage.php
<ul>
<% control GalleryItems %>
<li><a href="$Image.URL" rel="shadowbox[gallery]">$Image.CroppedImage(100,60)</a></li>
<% end_control %>
</ul>
This code displays a nice list of everything in the album, but I also need the cover art. I attempted to get access to the album cover art this way:
<% control Albums %>
<% control FormattedCoverImage %>
<a href="$Image.URL" rel=" ">$Image.CroppedImage(300,200)</a>
<% end_control %>
<ul>
<% control GalleryItems %>
<li><a href="$Image.URL" rel="shadowbox">$Image.CroppedImage(100,60)</a></li>
<% end_control %>
</ul>
<% end_control %>
Nothing displays from the first control, but the second control continues to work.
What's the proper way to do this?