O'Reilly logo

Drupal 7 Development by Example Beginner's Guide by Kurt Madel

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

Integrating the Colorbox and Media modules

So, the Media module has given us a nice interface for adding, browsing, and displaying media files. However, the images are taking up quite a bit of room. Let's create a pop-up gallery or lightbox, and show only one image. When someone clicks on an image, a lightbox will pop up, and will allow the user to cycle through larger versions of all of the associated images.

Drupal has a few different modules that offer an integrated lightbox solution for formatting sets of images. The following page, although somewhat outdated, offers a good overview of the different lightbox modules available for Drupal. Out of the whole bunch, I prefer the Colorbox module.

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