I'm wondering if anybody has gotten the 6.x version of this to work properly for Drupal 6 CCK/Imagefield/Imagecache? When I enable it, I get the correct list of display formatters for a field, but when I select any of the Lightbox2 options, the field simply disappears.
I can't be certain this is a bug, but looking at hook_theme, none of the dynamic themes (one for each imagecache preset combination etc) are defined, and the formatter names are of the form
lightbox2][medium][original
which then defines #theme of the form:
lightbox2_formatter_lightbox2][medium][original
which then get passed into drupal_render via content.module as:
// Append formatter information either on each item ('single-value' formatter)
// or at the upper 'items' level ('multiple-value' formatter)
$format_info = array(
'#theme' => $theme,
'#field_name' => $field['field_name'],
'#type_name' => $node->type,
'#formatter' => $formatter_name,
'#node' => $node,
);
Any help would be much appreciated.
Cheers,
Jonathan
Comment | File | Size | Author |
---|---|---|---|
#15 | lightbox2.png | 21.72 KB | petrovichby |
#11 | Picture 1.png | 23.18 KB | capellic |
Comments
Comment #1
stella CreditAttribution: stella commentedThere isn't a D6 version of the imagefield module yet. When there is, some changes will obviously be required to the lightbox2 module to account for the changes in the API. Until then, this feature can not be used or supported.
Cheers,
Stella
Comment #2
jhedstromFor what it's worth, the conflicts are less with imagefield (which is in 6 in cvs head) than with the way cck handles formatters, and the way core handles theme functions.
Comment #3
stella CreditAttribution: stella commentedNot sure what you mean by that. However, the latest dev version of lightbox2 should work with the filefield module - though I've just found out that its api has changed in the last few days, so that may not be necessarily true any more... This is why I want to wait for stable versions!
Cheers,
Stella
Comment #4
jhedstromIndeed :)
I mainly just wanted to make sure I wasn't just doing something wrong in my setup...which you addressed in #1.
Comment #5
ugerhard CreditAttribution: ugerhard commentedIt looks to me as if the current CCK 2 doesn't use hook_field_formatter() anymore at all, just hook_field_formatter_info() and theme_-functions.
The hook is still present in the example fields, but not anywhere else in cck as far as I can see.
Comment #6
stella CreditAttribution: stella commentedYes, and once there's a stable D6 version of the imagefield module I will update lightbox2 to work with it. Until then, I'm marking this issue as postponed.
Comment #7
stella CreditAttribution: stella commentedImplemented in the latest dev release, available later today.
Cheers,
Stella
Comment #8
freshaspect CreditAttribution: freshaspect commentedFantastic news. I have a project all good to go to test this as soon as the release is out.
Comment #9
jhedstromAwesome. Thanks Stella.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #11
capellicI just upgraded to the latest alpha versions of FileField (6.x-3.0-alpha4) and ImageField (6.x-3.0-alpha2) and I don't see Lightbox options in my Display Fields. I am wondering if something has changed in the newest versions of these modules that broke something?
To be clear, I didn't have it working before the upgrade - I hadn't tried until now which happened to be after the latest release of FileField and ImageField on August 27.
Thanks!!!!
Comment #12
stella CreditAttribution: stella commentedAre you using the latest 6.x dev version of lightbox2?
Comment #13
capellicMay this be a lesson to anybody coding well past their bedtime. It should have occurred to me to use the dev version, but I was using the official release. Sorry for wasting your time --- and thanks for the immediate response.
Comment #14
stella CreditAttribution: stella commentedI do plan on releasing an official version very very soon. I just haven't had the time to focus on lightbox2 in the last couple of weeks, what with preparing for my Drupalcon presentations and being here in Szeged too. So gimme a couple of weeks and fingers crossed I'll have an official release made.
Cheers,
Stella
Comment #15
petrovichby CreditAttribution: petrovichby commentedI use latest versions of Lightbox2, imagecache, imagefield and cck.
Currently, I'm able to see Lightbox2 settings at Display fields page (see attachment), but the resulting node with images is empty :(
Comment #16
stella CreditAttribution: stella commentedpetrovichby: please open a new issue for your problem. However first check it's not the same issue as posted at #309464: Drupal 6.x - no option for lightbox2 in CCK "display fields" which is still open.
Comment #17
petrovichby CreditAttribution: petrovichby commentedstella, I've opened the new issue http://drupal.org/node/314173, because in my case I do able to see Lighbox2 options at Display fields page.
Comment #18
FrancewhoaThanks stella. I installed the dev version and it's working fine now. I installed Lightbox2 dev version 6.x-1.x-dev (2008-Sep-06).
I had the same issue with Lightbox2 version 6.x-1.8 (2008-Jun-29). I get the correct list of display formatters for a CCK field (for both 'teaser' and 'full-page mode'), but the images aren't displaying in the page.
I found a workaround if the Lightbox2 list of display formatters for a CCK field aren't showing. I open ALL lightbox2 settings page, change nothing and click SAVE button. Same thing for CCK just open ALL CCK field settings page and click SAVE button. Works for me.
Comment #19
kirilius CreditAttribution: kirilius commentedThis issue is closed but I still have the described problem. Can it be reopened again?
Comment #20
stella CreditAttribution: stella commentedkirilius: have you tried the latest dev release? and cleared your Drupal and browser cache? If so and it's still not working, please open a new issue.
Comment #21
Bevan CreditAttribution: Bevan commented#341027: List of formatters is unusably long was marked duplicate
Comment #22
gagarine CreditAttribution: gagarine commentedWith 6.x-1.x-dev 2009-Jan-05 I get the correct list of display formatters for a CCK field (for both 'teaser' and 'full-page mode'), but the images aren't displaying in the page.
Comment #23
gagarine CreditAttribution: gagarine commentedOK i juste clear drupal cach (like you say in comment #20, sorry...) and all work good. Perhaps is good that tickbox automatically clear the cache if is needen no? And certenly not all the cach need to bee cleared.
Comment #24
stella CreditAttribution: stella commentedgagarine: you probably just need to clear your Drupal cache. If you don't have the devel module installed, the easiest way to ensure this gets done is by running update.php. After clearing the cache, you may need to resave your CCK display settings.
Cheers,
Stella
Comment #25
stella CreditAttribution: stella commentedIt won't be an issue once the next release is made, later this week. The dev version is stable, but if you have time, please test it and report back any problems you find asap.
Cheers,
Stella
Comment #26
stella CreditAttribution: stella commentedReleased in Lightbox2 6.x-1.9 and 5.x-2.9.
Cheers,
Stella
Comment #27
medlife CreditAttribution: medlife commentedI just upgraded from 6.15 to drupal 6.16. In the process I also updated my lightbox2 from the 6.x-1.x dev to security patch 6.x-1.9 for security issues. I have cck 2.6 and the latest version of imagecache, imagefiled, filefield etc. I am also using ddblock version 6.x-1.0-rc6. After upgrade my lightbox2 doesn't work. If I keep the module enabled, it impacts ddblock as well and that won't work as a result.
Any insights? Should I go back to the dev version?
thanks for help!