Lightbox2

On my site, I use Lightbox 2 to display a high-res version of the original image when image thumbnails are clicked, rather than linking to the node.

However, I also wanted this behaviour for the images displayed in the Node body. You can see this in action here:

To do this, the image must be wrapped in an <a> tag - so you need to override the theme_image_body hook in your template.php file:

Syndicate content

Random Image:

Waterworks
Porth Beach
DSC_0338
Canal boat at twilight

Pete's tweets (@prbass)

  • hmmmm, something has messed with my jquery slideshow. Wish there was a "drush undo" command #drupal 2 weeks 6 days ago
  • "drush" and "update" are my new favourite words #drupal 2 weeks 6 days ago
  • Geekiest way to read the news? New Guardian zeitgeist, complete with hex rgb codes on the key. Nice. http://www.guardian.co.uk/zeitgeist 4 weeks 6 days ago
  • We've run out of balsamic vinegar. What a middle class problem. 4 weeks 6 days ago