Download & Extend

Small module: Inline asset images with Lightbox2 integration

Project:Asset
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSize
assetimagecachelightbox.zip1.3 KB

Comments

#1

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.

AttachmentSize
assetimagecachelightbox_updated.zip 1.36 KB

#2

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!

#3

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!

#4

Hi Wim,

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

#5

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 :)

#6

Status:fixed» closed (fixed)

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

nobody click here