Gallery icon indicating copy to clipboard operation
Gallery copied to clipboard

duplicate images in gallery thumbnails

Open codecompagnons opened this issue 4 years ago • 5 comments

Schermafbeelding 2021-09-29 om 17 23 16

Hi, I get duplicates images in the gallery. See screenshot. Any idea what this issue can be?

Many thanks in advance!

codecompagnons avatar Oct 04 '21 11:10 codecompagnons

Hi @codecompagnons, unfortunately it's not possible to know from just a screenshot. Do you have a publicly accessible url for your Gallery?

blueimp avatar Oct 04 '21 12:10 blueimp

Hi @blueimp Thanks for the fast reply. Yes, https://www.franceestateservices.com/nl/aanbod/occitanie/gard/molieres-sur-ceze/Huis/61dfe8e4-39f2-47ef-9744-c1052f29350d/ Remarkable: the duplicate images are the images visible in mobile view. The 3 under the larger image

codecompagnons avatar Oct 04 '21 14:10 codecompagnons

Thanks for sharing the link.

I looked at your source code and the reason you see thumbnails multiple times is because they are listed multiple times as links. e.g. in your id="links" container, you find two occurrences of a link with href="/media/3_5qTXUQe.jpg", both wrapping an img tag with the same src="/media/3_5qTXUQe.jpg".

To solve this, you might want to look into link grouping: https://github.com/blueimp/Gallery#container-ids-and-link-grouping

blueimp avatar Oct 06 '21 09:10 blueimp

Thanks! Going to check this out. I let you know if it worked.

Thanks again!

codecompagnons avatar Oct 06 '21 12:10 codecompagnons

@codecompagnons I just checked your link - it seems you got it working?

sebastian-marinescu avatar May 02 '23 12:05 sebastian-marinescu