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

Problem to set featherbox gallery

Started by Muut Archive 11 years ago · 3 replies · 472 views
11 years ago

Hi all,

I'm making a portfolio/blog site.I want to make a lightbox gallery for each project page.
For now, I insalled the featherbox plugin, activated it and enabled "gallery" option.
When I click on an image the box opens, the previus and next arrows apear but dont work.
I think I'm missing the way to make a "gallery" group from single images but I can't figure how to make it.

Pit

11 years ago

I'm still trying without success.
Do you think I have to add another parameter? Here is the code for the images in my item.md (I'm using the twentyfifteen theme):

TXT

![Sample Image](photo3.jpg?lightbox=400,400&resize=150,150)
![Sample Image](photo4a.jpg?lightbox=400,400&resize=150,150)
11 years ago

I just tryed to put the code in the twig and the result is the same. All the images are charged in the page but the links don't work in the lightbox :

TWIG

<div style="text-align:center; width: 100%; margin-left: auto; margin-right: auto; padding-bottom: 30px;">
   {% for image in page.media.images|sort %}
      {{ image.lightbox(400,400).cropResize(150,150).html() }}   
   {% endfor %}
</div>

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1351 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4062 9 years ago
Archive · by Muut Archive, 9 years ago
1 2948 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago