Hello,
I’m trying to implement a photo gallery but I’m having a problem displaying single images. My previous experience with photo galleries in ExpressionEngine is with using Matrix, but something must be a little different about the grid field and I can’t figure it out.
I have set it up so that each entry is a photo gallery. The grid has fields for an image title, thumbnail, and full size.
On the gallery index page, I have the following code:
{exp:channel:entries channel="gallery" orderby="date" sort="desc"}
{gallery limit="1"}
<div class="thumbnail">
<a href="http://{url_title_path=galleries/gallery}">{gallery:thumb}{title}</a>
</div><!--thumbnail-->
{/gallery}
{/exp:channel:entries}This shows a thumbnail for each gallery I have entered. Next, from clicking a gallery thumbnail, we go to the ‘gallery’ page with this code:
{exp:channel:entries channel="gallery" orderby="date" sort="desc"}
<div class="heading-bg"><h2>{title}</h2><p></div><br />
{gallery}<br />
<div class="thumbnail"><br />
<a href="http://{url_title_path=galleries/image}">{gallery:thumb}{gallery:title}</a><br />
</div><!--thumbnail--><br />
{/gallery}<br />
{/exp:channel:entries}This shows all of the thumbnails in the particular gallery. Now from each thumbnail, I want to go to a page that shows the full size image but I’m lost here. I either get all of the full size images in the gallery, just the first image (regardless of what thumbnail I click), or nothing at all.
Any help would be greatly appreciated!
Matt