PDA

View Full Version : DW and lightbox2


bcweb
09-27-2010, 06:02 PM
I used lightbox to make a gallery w/ DW and it works great. I have now created a second gallery and added the lightbox folder again to my website. I renamed it "lightbox 2" to distinguish it from my other lightbox gallery.

I can't get the gallery to work w/ the second folder. What scripting things to I need to change since my folder has a new name?

Thanks

gentleone
09-27-2010, 06:33 PM
To have more then one gallery you don't need to duplicate your whole lightbox folder. You define a gallery with with the rel attribute right?

<a href="images/image-1.jpg" rel="lightbox[gallery-1]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[gallery-1]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[gallery-1]">image #3</a>
So if you want another gallery with the images 4, 5 and 6 then you give the rel attribute another value/name such as gallery-2:

<a href="images/image-4.jpg" rel="lightbox[gallery-2]">image #4</a>
<a href="images/image-5.jpg" rel="lightbox[gallery-2]">image #5</a>
<a href="images/image-6.jpg" rel="lightbox[gallery-2]">image #6</a>

bcweb
09-27-2010, 07:54 PM
THANK YOU! I did have the rel attribute [ ], now I've combined the folders and it works!