Within views I have created a simple image attach field that displays an image attached to a node content type. I have configured views to link to the node that the image is attached to. This works fine. However if I enable "automatic node image handling" within lightbox lightbox overrides the link created by views and replaces it with a lightbox linking to the node image rather than the node the image is attached to. I would expect the "automatic node image handling" to only apply to node images that link to the node image. If the node image has been set to link to something else lightbox should leave it alone.
Comments
Comment #1
enkara commentedI have the same problem. I've had to disable lightbox
Comment #2
mokko commentedTesting the new views function in lightbox2, I think I ran into the same problem. However, how can the version for this problem be 1.9? I thought this is only in dev! So maybe this issue applies to normal lightbox2 and normal views as well. Not sure if I should open another issue for the lightbox views trigger. Any ideas?
Comment #3
stella commentedIf your view contains an image attach image which links to the node page, and automatic image handling is enabled, then yes, the image will open in a lightbox. This is by design.
If on the other hand, you have a text based link linking to the node, then the link should not trigger a lightbox.
Can you clarify which type of link you have?
Cheers,
Stella
Comment #4
ocoro02 commentedYou can override lightbox for the desired page - under admin/settings/lightbox2, 'Page specific lightbox2 settings'.
Comment #5
bryanb229 commentedThanks stella, that is so simple, but I was stuck on that for a while.
Comment #6
_paul_meta commentedI am adding this question to this issue as it seems very close in nature (lightbox overriding image links) but my situation does not involve views.
I am having this problem with lightbox2 when using it with the image module, image assist and fckeditor.
imageassist lets users insert an image and optionally set it to link to a html link, a popup window, or the image page.
'out of the box' ... the integration between this functionality and lightbox2 is not good ..
if the user chooses 'open in a popup window', both a popup window and lightbox open. the lightbox is not the right size either. i wrote some jquery to deal with this problem though.
if the user chooses 'link to image page', only a lightbox opens, but its at the same size as the inserted image. i can also deal with this by some custom jquery
but of more concern .. is that if the user chooses a html link, lightbox2 overrides their link destination and replaces it with a lightbox popup to an image. (presumably because the image gets inserted with the class 'image' .. removing this in the source code stops the lightbox triggering, but this is not something unskilled users should have to do.
it seems that lightbox2 is not making any differentiation between an image link that links to a url, and in image link which links to the popup version or the image page - and i think they should be treated differently. it might be hard as image assist emits the same image classes but it would be great if lightbox could make this disctinction.
i'm a bit stuck as there is no way i can let my users easily insert an image and make it in to a link without them getting in to the source code.
any thoughts on this issue?
otherwise lightbox has been a great module in all cases i've used it.. thanks for your work!