Lightbox2 strips CSS classes from CCK ImageField images
| 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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| you-upset-me-lightbox.jpg | 355.99 KB |

#1
Any love?
#2
Setting to critical.
#3
Still struggling...
#4
any solutions...?