Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Create multiple galleries with lightbox action

plugins theme

Started by Artiom 7 years ago · 1 replies · 1118 views
7 years ago

I am trying to create multiple galleries on the same page. featherlight plugin has gallery function but all images on the page will be in the same gallery.
How difficult would be to add another parameter to lightbox action so it generates rel attributes like rel="lightbox-nn" where nn is a counter?

It doesn't need to be automatic. A call like this would be fine:

TXT
.lightbox(1,600,400)

Where 1 will be concatenated with rel:

TXT
rel="lightbox-1"
last edited 04/15/20 by Artiom
6 years ago

Well, looks like this forum is dead...
Right now I will do it using init script of my custom lightbox plugin.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 3 weeks ago
2 285 3 weeks ago
Plugins · by renedebaaij, 4 weeks ago
1 262 3 weeks ago
Plugins · by Thomas, 4 weeks ago
1 275 4 weeks ago
Plugins · by complanar, 2 months ago
6 596 1 month ago
Plugins · by BenLaKnet, 1 month ago
1 499 1 month ago