Thanks for this great module!

I use JLightbox to show enlarged images in a List View (CCK image field + image cache). If the View results in one record, one image is shown. But if the View results in multiple records, the selected image is shown with a text like: "Image 1 of 3" and associated 'prev' and 'next' functions. How to disable this functionality?

CommentFileSizeAuthor
#1 jlightbox.gallery.patch2.31 KBsun

Comments

sun’s picture

Title: How to remove "Image 1 of 3" » Allow single image lightbox
Category: support » feature
Status: Active » Needs review
StatusFileSize
new2.31 KB

Please test attached patch. It allows you to select "jLightbox: [namespace] gallery" or "jLightbox: [namespace]" in CCK imagefield display settings. So you are able to select the latter one for the teaser view and the former for the full view of a node.

Note: I did not include an upgrade path. So be sure to keep your jlightbox field display settings somewhere, as those will probably be resetted.

Additionally, you will have to clean your content type cache to enable the new field formatters. You might use devel module for that.

sutharsan’s picture

Thanks for the quick response! Patch tested with both single and gallery and it works.

It would be good to document the gallery function a bit more in the Readme. The gallery option only works with images in different (views) records and not with the images within one record (node).

sun’s picture

The gallery option only works with images in different (views) records and not with the images within one record (node).

I didn't understand that. Could you explain it some more?

sun’s picture

Status: Needs review » Fixed

Thanks, committed!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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