Couldn't get this to work. I'm loading imagecache images in a block using views. Does the class selector that needs to be entered in the "Custom Class Images" field come from the img or the link? Also do you have to include any puntuation or just the class name (e.g. '.custom_class' or 'custom_class')?

Regards,

Marius

Comments

mariusooms’s picture

HI, I figured out it reads the class of the img. I added some code to imagefield to support class. So I have it working, but as the lightbox comes up I get the missing picture displayed (The little camera with the round sign over it).

I'd like to show the node image that's linked to the thumb. How is lightbox interpreting the url to the full size image? Am I overlooking something?

Kind regards,

Marius

stella’s picture

Status: Active » Fixed

Custom class images are meant to work so with html like :

<a href="/images/my-full-size-image.jpg"><img src="/images/my-thumbnail-image.jpg" class="customclass" /></a>

where "customclass" can be any class name you want, as long as you've set it up on the configuration page as one of the image trigger classes.

Lightbox2 in Drupal 6 doesn't support imagecache or imagefield yet - still waiting for an official release.

Cheers,
Stella

mariusooms’s picture

Thanks Stella...I guess I'm so used to most modules being in constant dev mode that I tend not to wait for things to release officially.

I see that the url of the thumb should just link to the full-size-image? How than would lightbox2 know what the link to the node is, if you want to link through from lightbox? Just curious.

Kind regards,

Marius

stella’s picture

It can't, not for custom class images, not unless you set it as part of the caption. See the documentation at http://drupal.org/node/144488 on how to set a caption.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

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