Hello all!
I have built, using the EE image gallery module, a very simple image gallery for a client. The general setup is one image gallery, several categories with sub-categories within them.
On the content page I simply grab the first image in each sub-category and display it on the page then the user can click to view the rest of the images in that category in a lightbox overlay. The rest of the images are rendered as well but I have them hidden on the page for use in the overlay. The user can only navigate using next and previous buttons.
This works perfectly (it took a lot of searching the the forums to get it that way mind you 😊) with one exception. For some reason I get a duplicate of each image when the overlay loads. The first image shows the title of the category below it, the second does not.
You can see a sample of the issue here… http://www.closetandroomsolutions.com/index.php/other-applications/
Here’s the mysql query I used on the page:
{exp:query sql="SELECT cat_folder, parent_id, cat_name, filename, entry_id FROM exp_gallery_categories c, exp_gallery_entries e WHERE e.cat_id= c.cat_id AND e.cat_id = '{category_id}' AND c.parent_id = '{embed:parent}' ORDER BY e.entry_date ASC"}Anyone have any thoughts? Any ideas you can provide would be great.
Thanks!