lightbox

Quickly adding imagecache and lightbox to posts on Drupal sites

Following up on yesterday's post this is a quick and dirty guide to adding images to blog posts using and . The effect of these together is to create an image like the one in this post. When clicked the image will display in an overlay on this page thanks to lightbox. Imagecache handles making a static copy of the image available and resizing the image to provide several predefined sizes.

It is possible to do similar things in much better ways. For example creating an image field and a template for displaying posts that include the image. This method is a quick and dirty method using a minimum of additional modules. With Drupal 6 the module will make this method even simpler.

The first step is to setup the necessary modules (imagecache and lightbox v2). The has some information about setting up presets for imagecache. The latest version of imagecache has new settings that deprecate some of the old settings. See the image in this post for a glance at what is in the newest CVS version.

Subscribe to lightbox