Closed (won't fix)
Project:
FileField Image
Version:
6.x-1.0-beta1
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2008 at 16:37 UTC
Updated:
21 Apr 2009 at 07:29 UTC
Wouldn't be great to have compatibility with lightbox2?.
Comments
Comment #1
jpetso commentedYeah, totally. :P
Who wants to take this on?
Comment #2
gionnibgud commentedHi, I had a look in to both imagefield and lightbox and I think that integration would be quite easyfor somebody with some skill but it has to be done by both modules.
If i got it right, lightbox module looks for specific classes in the img tag generated by an image module and applies the lightbox to the outside link. This happens for all the different image modules supported by lightbox module.
I guess that integration will work when: 1- imagefield will assign a lightbox class to imgs (and imgcache derivatives) 2- Lightbox will be able to recognize this class as a trigger.
Maybe a good start could be getting imagefield to add the class to the img. This would provide a class the user could add (manually) in the custom trigger section of the lightbox administration.
I'm not very advanced in my php but i think i can provide an example for the imagefield ->imagecache->lightbox (this reads thumbnail with lightbox):
filefield_imagecache.module line 64 :
filefield_imagecache.module line 121 :
)
Note: The class I used ('image-thumbnail') would work right away because it is already used by another image module (can't remember which) so no custom trigger configuration is needed.
I hope this is of any help.
cheers
Comment #3
bobek commentedI have done some testing, and it looks like, that adding 'rel' to href works better for me, because than I have valid groups of images on the front page (e.g. per node and not all images on the page grouped together).
Comment #4
gionnibgud commentedyes bobek definitively true, rel could be a better way but, from what i remember, lightbox module uses classes when integrating with other image modules.
We should check this out since, as i said, i might not remeber correctly.
Anyway here (http://drupal.org/node/144488) we have examples for all use cases.
Grouping should be implemented for a multiple value image filefield, that's for sure. Grouping on multiple value filed base would allow to have different galleries on the same node.
On the other side, 1 gallery->1 node, with some help from views module, would more or less give you the same result.
Also lightshow (lighbox slideshow) would be nice.
I also think that caption is quite important when showing lightbox so it should be taken into account too.
Last thing, I'm still convinced that most of this integration should be done on lightbox module side, more than on filefield image side.
Guess it's about time to post a feature request to lightbox mantainers, considering how popular this image module is becoming.
cheers
Comment #5
ar-jan commentedAgree, lightbox integration would be the best. I'm now using these tips http://drupal.org/node/274487 to have my thumbs popup in a grouped lightbox, but integration would be much nicer! (subscribe)
Comment #6
mariusooms commentedHi, I was wondering if it would be possible to do the following with the rel array:
Basically exposing the author to create a group and use the title as caption to create the node link. $node->title is available by default, but the uid or user->name are not. Could this work?
Kind regards,
Marius
Comment #7
mrgoltra commentednot sure if this comparison chart reflects version 6.
http://drupal.org/node/266126
Comment #8
jpetso commentedThis module is now phased out in favor of FileField/ImageField 6.x-3.0. All issues are "won't fix" because the module is essentially dead. Please have a look at the project page for some explanations.