I have a repeat with the thumbnails of a gallery and by clicking on each thumbnail the lightbox opens and works regularly
Then I have a cover image, which is not part of the repeat, and I would like the lightbox to open even when clicking on this cover
I tried to add the following code to the cover
dmx-lightbox: images = “lightbox1” and actually opens the lightbox, but the first error image “url not supported”
Can we exclude this and view only the others?
What have you set as an url for this link?
Marzio,
You need an anchor image to call the lightbox. In the anchor tag you place the link as well as the “Open in lightbox” option.
Ok now it’s perfect Thanks Teodor
the only small problem is that in the lighbox the first photo appears twice, because it is also present in the repeat
But for this I don’t think there is a solution
Actually, you can use the formatter to create a repeat region which shows the last total - 1 images of your query.
It is certainly a solution but in my case it is not good
In this way, if I understand correctly, if you click on a thumbnail that photo is not displayed
Or do I need to apply the formatter only to the cover link?
Marzio, you apply this to the repeat.
So header image shows image 1, the repeat shows image 2 to image 99.
This way image 1 will be displayed once.
Thanks Teodor
But total -1 where I find it
In the formatter / Collection?
Yes
Select last and setup count-1 …
Ok thank You
Ok now it’s perfect Thanks Teodor

