Hello,
I need the alt attribute of my image to be the title of the page it is being viewed on. any ideas?
class StaffPage extends Page{
.....
static $has_one = array(
'Photo' => 'Image'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Images", new ImageField('Photo'));
return $fields;
}
}