Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to display an embedded image field using colorbox?
I created a cck type containing an embedded image field. And then I went to the "display fields" tab to select the display for my embedded image field. Unfortunately, 'colorbox' was listed among the display options.
Any suggestions, for how I can use colorbox with a multi-valued embedded image field?
Thanks for your help.
P.S. I had no problem getting colorbox to work with an embedded video field.
Comments
Comment #1
aaron CreditAttribution: aaron commentedsadly, no, it does not currently. patches are welcome, of course... basically would need to add the theme functions (probably by copying largely verbatim from emvideo). the menu items should be in place. look for anything saying 'modal' or 'colorbox' in the theme.inc file.
Comment #2
aaron CreditAttribution: aaron commentedComment #3
aaron CreditAttribution: aaron commentedComment #4
kobnim CreditAttribution: kobnim commentedHi Aaron,
I have an emimage patch that adds support for colorbox, but there is one thing I have not been able to figure out: how to display emimages in a colorbox overlay when the node is previewed. Currently, when the user clicks a previewed image, they are redirected to the remote image. Any suggestions?
Thanks,
Mindy
Comment #5
kobnim CreditAttribution: kobnim commentedP.S. I see that emvideo.theme.inc has these two functions, which I am guessing are used to theme the previewed video. But I don't see how these functions are getting called:
Comment #6
stephen Piscura CreditAttribution: stephen Piscura commentedAny further developments on adding Colorbox support to Embedded Image Field?
Comment #7
kobnim CreditAttribution: kobnim commentedI implemented support for displaying embedded image fields within colorbox. It's working, but I still need to clean up the code and create a patch. I will do my best to get this done within the next month.
- Mindy
Comment #8
stephen Piscura CreditAttribution: stephen Piscura commentedMindy,
Wow this would be really timely! Many thanks in advance for your work on this...
Comment #9
stephen Piscura CreditAttribution: stephen Piscura commentedMindy,
Any updates on the emimage/colorbox combo?