Active
Project:
Image Caption
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2012 at 21:44 UTC
Updated:
20 Jan 2012 at 21:44 UTC
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