Hi,
this is stating to drive me crazy; according to the project page, the "Lightbox2" module is supposed to automatically handle images nodes created with the "image" module: "Automatic Image Detection: configurable automatic re-formatting of image node thumbnails, previews, etc, so there is no need to add 'rel="lightbox"' to each image node link on your site. Image [...] modules are all supported".
However, I can't get this to work on any Drupal site or with any recent Drupal or module version (D5/D6; e.g. Image 6.x-1.0-alpha5 plus Lightbox2 6.x-1.9, or Image 5.x-2.0-alpha3 plus jQuery Update 5.x-2.0 and Lightbox2 5.x-2.9); after enabling "Automatic handlers" for image nodes at ./admin/settings/lightbox2/automatic (handler: "lightbox"; format: (valid image derivate selected from pulldown menu); image trigger: (valid smaller image derivate selected from pulldown menu)), simply nothing happen when clicking on the images in image nodes.
In the delivered HTML code, I can see that at least something coming from "Lightbox2" module is injected into the page: ... "lightbox2": { "rtl": "0", "file_path": "/(\\w\\w/)sites/default/files", "default_image" .... Together with CCK plus Imagefield based content types, the "Lightbox2" module is working beautifully, so - I think - it can't be an incompatibility with another module (e.g. "admin menu"), a total misconfiguration, or something nasty in all of my themes (this applies for: unmodified Garland; Zen-based sub-themes; the contributed theme "Slash").
What am I doing wrong? Where can I look what's happening?
Thanks & greetings, -asb
Comments
Comment #1
stella commentedLightbox2 will only load images if the image is also a link, i.e. has the anchor <a> tags around it. The images on an image node typically aren't links and hence can't be displayed in a lightbox.
Comment #2
asb commentedHi thank you for the quick reply. That's exactly what I thought Lightbox2 would handle: Act as a smart replacement for the image derivate links at the node's bottom that most users overlook (e.g. the image node displays a 400px image, Lightbox can be configured to pop up if the user clicks on this image and displays a 800px image derivate; the
<a>tag is there, but not around the image; at least that's what I imagined as "Automatic Image Detection").What I still don't understand is what the "Automatic Image Detection" for image nodes does handle if images on an image node can't be displayed in a lightbox; e.g. what sense makes this image trigger setting at ./admin/settings/lightbox2/automatic if it never triggers anything?
Sorry, but I find this quite confusing (and am trying to make up a scenario where anything of this would make sense for image nodes)...
Greetings, -asb
Comment #3
stella commentedTypically it supports image module's images in teasers (which are links), and the images in an image gallery (image_gallery module which comes with image.module). It does also support the links on the bottom of an image node page, which link to the different derivative sizes - though you may need the dev version for that.
Comment #4
cbrody commentedHi, I would query that it works with the Image module's built-in image gallery. I have been trying to get this to work using the default view provided by the image gallery but lightbox2 fails to trigger.