O'Reilly logo

Drupal 7 Theming Cookbook by Karthik Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding lightbox support for images

Lightbox plugins allow users to view magnified versions of clicked thumbnails in modal dialogs on the same page. Coupled with easing animations and other attractive effects, they make for engaging viewing.

While there are a number of modules that provide such functionality, we will be looking at the Colorbox plugin and module in this recipe specifically as it is jQuery-based and supports the Image module.

Getting ready

The Colorbox module (version 7.x-1.1 at the time of writing) can be downloaded from http://drupal.org/project/colorbox. The project page also provides information on installing the Colorbox plugin which summarily amounts to downloading it from http://colorpowered.com/colorbox and extracting within ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required