At present, the fast gallery module can display images in a lightbox. However, if there are many images in a gallery, there's no way to navigate between them - you have to close the lightbox, then click on another image. This is because the rel attribute is just set like rel="lightbox".

To create a lightbox2 gallery, i.e. one where next and previous buttons can be clicked which will take the user to the following or previous image, you need to group the images together. This is done by setting the rel attribute to be rel="lightbox[groupname]", the "groupname" can be anything as long as it's the same for all images in the group/gallery.

Creating a lightbox slideshow is very similar to creating a lightbox2 gallery using groups, the rel attribute used is lightshow, e.g. rel="lightshow[groupname]"

It would be good if there could be an option to choose between the type of lightbox2 display needed. I imagine most users using fast gallery will want the images in the gallery to be grouped. Just a thought.

Cheers,
Stella

Comments

jaguarondi’s picture

Just changing line 545 of fast_gallery.module by the following line does it and it works fine.
'rel' => 'lightshow[fast_gallery]',

If you don't want the slideshow, use
'rel' => 'lightbox[fast_gallery]',
At least this last line can be used right now so the functionality of lightbox is more consistent with thickbox.

On the other hand, the slideshow only includes the images of the page while it would probably be better to include all pictures of the gallery (same level). This can be done by also including the other pictures with class="lightbox_hide_image" but I couldn't find how to mix that with the pager.

rapsli’s picture

Version: 6.x-1.2alpha2 » 6.x-1.x-dev
Status: Active » Fixed

oky. commited to the latest dev version. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.