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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

schroedhelm’s picture

I 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.

cmillet1’s picture

This 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!

wmostrey’s picture

Status: Needs review » Fixed

This 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!

ugerhard’s picture

Hi Wim,

the update for imagecache2 compatibility was made by Schroedhelm, so please credit him in the release notes :-)

wmostrey’s picture

Thanks for pointing that out, I'll do that.

Wow schroedhelm, you have an account for one week and you dive right into it huh :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.