# Duplicate Gallery Images in Lightbox

**URL:** <https://www.ruby-forum.com/t/duplicate-gallery-images-in-lightbox/158697>\
**Category:** Radiant CMS\
**Created:** [January 26, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/duplicate-gallery-images-in-lightbox/158697 "2009-01-26T23:08:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [January 26, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/duplicate-gallery-images-in-lightbox/158697/1 "2009-01-26T23:08:00Z")

</div>

Hi all,

I have a gallery with 7 images using Pilu’s Gallery extension. The  
images are displayed properly as thumbnails on the page, but when a  
Lightbox window is opened, the description information says “Image xx of  
14”. Clicking “Next” takes you to a duplicate of the same image. So it  
looks like the javascript is duplicating each iteration somehow, but I’m  
not sure where.

I did try updating the extension, but the issue still exists. I running  
Radiant 0.6.9 and Gallery 0.7.12.

You can view the page here:  
[http://artcrete.concretedesigncenter.com/products/cast-in-place/texture\_tools](http://artcrete.concretedesigncenter.com/products/cast-in-place/texture_tools)  
(scroll down to the bottom for the thumbnails)

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [January 27, 2009, 12:03am UTC](https://www.ruby-forum.com/t/duplicate-gallery-images-in-lightbox/158697/2 "2009-01-27T00:03:45Z")

</div>

Ben,

Lightbox expects a link with the same rel attribute to every image in  
the gallery. Make sure that you have all the links there, even if they  
are invisible.

Sean

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [January 28, 2009, 5:15am UTC](https://www.ruby-forum.com/t/duplicate-gallery-images-in-lightbox/158697/3 "2009-01-28T05:15:50Z")

</div>

Sean C. wrote:

> Lightbox expects a link with the same rel attribute to every image in  
> the gallery. Make sure that you have all the links there, even if they  
> are invisible.

That was it, thanks Sean. I had a link for the text and a link for the  
thumbnail image for each item. So therefore the two links contained two  
‘rel’ attributes per item.

Removing the link on the text label fixed the duplication.

Thanks for the help!
