Closed (fixed)
Project:
Lightbox2
Version:
5.x-2.3
Component:
Miscellaneous
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2008 at 22:53 UTC
Updated:
16 May 2010 at 11:45 UTC
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
Comment #1
stella commentedThanks! 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
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
stella commentedReleased in Lightbox2 5.x-2.4.
Cheers,
Stella
Comment #4
zeezack commentedI 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?