Snippets

Build a jQuery Lightbox Image Gallery by Changing One Line

We're back from Boston DrupalCon 2008 and busy catching up with everything else. The site that I'm using this technique on will launch soon, but I wanted to share it now. Also, check out my Technorati Profile!

Drupal's Image module provides you with a pretty no-frills image gallery out of the box. In a site I was recently building, I wanted to present large imagery, but my main content column inside the site was somewhat cramped, and so I decided that some sort of Lightbox / Thickbox effect was in order to present the images to the user.

Luckily, with two extra modules and changing a single line of template.php code, you can get your gallery up and running with Lightbox.

Syndicate content