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.
I've created for myself a small, rather "mini", module (see attachment) that's essentially just a very minor mod of imagecache_asset_formatter() from Asset 1:
It exposes additional formatters for images. These formatters use an imagecache preset for the display of the image, but wrap the image in a "lightbox-ed" link to the source image. Therefor the module has dependencies on Asset, Lightbox 2 (http://drupal.org/project/lightbox2) and Imagecache.
Comment | File | Size | Author |
---|---|---|---|
#1 | assetimagecachelightbox_updated.zip | 1.36 KB | schroedhelm |
assetimagecachelightbox.zip | 1.3 KB | ugerhard |
Comments
Comment #1
schroedhelm CreditAttribution: schroedhelm commentedI have updated the module to work with the latest asset development snapshot (from Aug-25-2008). The dev snapshot contains support for imagecache2 and subsequently the new calls to imagecache_presets() etc. I took the new imagecache_asset_formatter() and basically added Udo's mods to make the lightbox feature available also in this new version.
EDIT: Updated the attached file. First version was corrupt.
Comment #2
cmillet1 CreditAttribution: cmillet1 commentedThis was the final piece of the puzzle for getting Lightbox to really work for me on my site. Asset + imagecache + Lightbox + this patch makes for a very elegant solution. No need to mess with code at all to get Lightbox-enabled inline images in nodes.
Thank you!
Comment #3
wmostrey CreditAttribution: wmostrey commentedThis has been fixed in http://drupal.org/cvs?commit=137500.
Thank you Udo for updating the module to work with the dev version and imagecache2, this is just in time for release candidate 2!
Comment #4
ugerhard CreditAttribution: ugerhard commentedHi Wim,
the update for imagecache2 compatibility was made by Schroedhelm, so please credit him in the release notes :-)
Comment #5
wmostrey CreditAttribution: wmostrey commentedThanks for pointing that out, I'll do that.
Wow schroedhelm, you have an account for one week and you dive right into it huh :)
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.