Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

[solved]Featherlight Gallery opens tabs and not a gallery

Started by Slyholborn 8 years ago · 9 replies · 1410 views
8 years ago

Hello! i'm unable to make a gallery in an article with featherlight : instead of animation, every image opens in a new tab... i'm stuck!
I use this syntax ![](P9300838.JPG?lightbox=1024&cropResize=200,200) wich normaly works...
Any help?
Thank you!

last edited 05/13/18 by Slyholborn
8 years ago

Hi slyholborn,

Are you sure you insert rel="lightbox" in the link and set gallery parameter on in the settings ?

Sten

8 years ago

i've edited my post so one can read the link. Mine seems different from yours sten... It's been months since it's broken but in a previous version of grav (can't remember which one) it worked
I'll check that!

last edited 05/13/18 by Slyholborn
8 years ago

i also post my featherlight.yalm file

YAML
enabled: true
active: true
gallery: true
requirejs: true
openSpeed: '250'
closeSpeed: '250'
closeOnClick: anywhere
closeOnEsc: true
root: body
initTemplate: 'plugin://featherlight/js/featherlight.init.js'
8 years ago

Try setting
requirejs: false
should be working

8 years ago

Nearly! i can see next and previous arrows but it closes the picture when i click on it.

8 years ago

It works great! Tank you very much! I thought requiring js was needed... An explanation?

8 years ago

As far as I understand
requirejs: true
is only for a specific usecase: look here
In most cases the standard settings are enough for plugin to work

last edited 05/14/18 by arank

Suggested topics

Topic Participants Replies Views Activity
Plugins · by complanar, 6 days ago
6 268 2 days ago
Plugins · by BenLaKnet, 3 days ago
1 98 3 days ago
Plugins · by complanar, 4 weeks ago
2 416 3 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 707 2 months ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 547 2 months ago