Was thinking it might be really useful to provide an option in the lightbox2 configuration to allow the user to select between a default grouping for lightbox and a custom one based on the field name.

I needed this for a photo gallery application where I had groups of before and after photos in a single node, and needed more control over how lightbox would output them.

For my application, I had to change lightbox2.module, line 550:

- $rel = 'lightbox[cck_image_nodes]';
+ $rel = 'lightbox['.$field['field_name'].']';

Thanks for maintaining this great module!

Comments

stella’s picture

Status: Active » Fixed

Thanks! That's a great idea. I've applied your patch to the 5.x and 6.x versions in CVS and it will be included in the next release. Unfortunately it just missed yesterday's release, but it will be in the dev version available later today.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

stella’s picture

Released in Lightbox2 5.x-2.4.

Cheers,
Stella

zeezack’s picture

I have the same requirements. A brief has come in where the client wants to have the main content in a lightbox? How is this to be achieved via the menu attributes... surely fancybox is better but I can not get it working on drupal?