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

Lightslider

Started by Muut Archive 11 years ago · 8 replies · 345 views
11 years ago

Can two sliders be placed in one modular page? I tried doing it and the first one works properly but the second one is always deconstructed, showing slide one with text then below that showing slide 2 with text and so on.

11 years ago

That might not have been tested :) Do you have a running site I can have a look at before I try to recreate it myself?

11 years ago

Ok yah, so I had a look at this, and there's a unique_id option in the lightslider configuration. If you are using modular pages, you should be able to set this to something unique for each page.

To make this truely automatic will require some updating to the plugin to use a uniquely generated id for each instance.

I have created an issue for it: https://github.com/getgrav/grav-plugin-lightslider/issues/8

11 years ago

I saw that you fixed this issue, and I installed the new version of the lightslider plugin but I am getting the same effect? Am I missing anything?

11 years ago

It requires Grav 0.9.18 to generate that ID, so just update it with:

BASH
bin/gpm selfupgrade
11 years ago

@rhukster, thanks a lot, after updating the core both sliders are functioning properly. Thanks for all the hard work you are putting into this awesome project.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1322 9 years ago
Archive · by Muut Archive, 9 years ago
2 917 9 years ago
Archive · by Muut Archive, 9 years ago
2 4048 9 years ago
Archive · by Muut Archive, 9 years ago
1 2922 9 years ago
Archive · by Muut Archive, 9 years ago
3 1106 9 years ago