Hi,
I am using resized images in a couple of templates, and was wondering how to set the alt attribute on those.
I've extended the Page class with
static $has_one = array(
'Photo' => 'Image',
);
and I call the image in the template with:
<% if Photo %>
$Photo.SetWidth(130)
<% end_if %>
And thats all fine. But say I would like to use the image title (set in Files & Images) as the alt text for the image - How do I do that?