How to display jQuery Lightbox anywhere in the page?

spasmody - October 3, 2007 - 14:42
Project:jQuery Lightbox
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hello,
Congratulations for this amazing project.
I'd like to dispaly jQuery Lightbox anywhere in the page (the sidebar in my case)
How to overrride the theme and to manage images directly within page.tlp.php?
Thanks

#1

sun - October 5, 2007 - 14:28
Title:How to dispaly jQuery Lightbox anywhere in the page?» How to display jQuery Lightbox anywhere in the page?

As long as you do not use one of the supported integration modules (see README), you have to add rel="lightbox[foo]" to a surrounding link of each image.

Example:

Before:

<a href="bar"><img src="foo.jpg" /></a>

After:

<a rel="lightbox[baz]" href="bar"><img src="foo.jpg" /></a>

...whereas you can omit [baz] to display only one image instead of a gallery or change baz to whatever gallery name you like to.

#2

sun - October 8, 2007 - 22:37
Status:active» fixed

I guess this is fixed.

Feel free to re-open this issue.

#3

Anonymous - October 22, 2007 - 22:41
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.