Lightbox2 strips CSS classes from CCK ImageField images

N1ckhead - October 13, 2009 - 22:59
Project:Lightbox2
Version:6.x-1.9
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Issue tags:CCK, CSS, imagecache, Imagefield, lightbox
Description

Hi. I'm using ImageCache, ImageField (cck), and Lightbox. Life was good, until I realized that any CCK ImageField I set Lightbox to manage (via Manage Fields), no longer had the "ImageCache" class attached to it.

In other words, Lightbox is stripping any CSS classes I'm trying to attach to my CCK ImageField img tags.

So...

Before I enable Lightbox on an ImageField, the output looks like this...

<a class="imagecache imagecache-articles imagecache-imagelink imagecache-articles_imagelink" href="http://westernwearandgear.com/sites/default/files/rodeo3.jpg">
<img class="imagecache imagecache-articles" height="134" width="200" title="Cowboys" alt="American Cowboy Picture" src="http://westernwearandgear.com/sites/default/files/imagecache/articles/rodeo3.jpg"/>
</a>

Note the img classes "imagecache". I need this imagecache class so I can tweak the style of images managed by imagecache.

Now, once I enable LightBox...

<a class="lightbox-processed" rel="lightbox[field_image][Rodeo Pic Testing CCK and Placement]" href="http://westernwearandgear.com/sites/default/files/rodeo1-big.jpg">
<img height="154" width="200" title="imagecache testing" alt="testing testing" src="http://westernwearandgear.com/sites/default/files/imagecache/articles/rodeo1-big.jpg"/>
</a>

The classes totally disappear? I reallllly need an image class on these divs so I can assign them a max-width and auto height to make images liquid/scalable (otherwise, my otherwise liquid site, looks like crud at < 1024x768.

Any ideas? See attachment if my description wasn't clear. Thanks.

AttachmentSize
you-upset-me-lightbox.jpg355.99 KB

#1

N1ckhead - October 23, 2009 - 23:16
Category:support request» bug report

Any love?

#2

N1ckhead - October 23, 2009 - 23:18
Priority:normal» critical

Setting to critical.

#3

N1ckhead - November 20, 2009 - 22:49

Still struggling...

#4

tomsm - November 26, 2009 - 12:50

any solutions...?

 
 

Drupal is a registered trademark of Dries Buytaert.