Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Create multiple galleries with lightbox action

plugins theme

Started by Artiom 6 years ago · 1 replies · 702 views
6 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 Rene, 1 week ago
2 47 1 week ago
Plugins · by Xavier, 4 weeks ago
2 56 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1182 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 50 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 74 2 months ago