Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using Image Caption module to add the class="caption" to my imagefield. I've added an imagecache preset to this. Is there a simple method of wrapping this img src with a link to the original sized image? The issue is that the Imagecache module does not have a straightforward method of adding the "caption" class so I'm trying to do it with a custom formatter. I want the image to be clickable to its full original size.
Here's the code I've got so far:
<img src="[site-url]sites/default/files/imagecache/new_gallery_scale/new_gallery_images/[filefield-filename]" alt="[filefield-alt]" title="[filefield-title]" class="caption" />
-Trevor