Hello,
i hope this is the right place for my question/problem. I have searched for the problem, buf havent found anything therefor.
to the problem :
whenever an image gets resized, the $title will be empty (also for any other file $db ).
image.php // 2.3.4.
function getTag() {
if(file_exists("../" . $this->Filename)) {
$url = $this->URL();
$title = ($this->Title) ? $this->Title : $this->Filename;
return "<img src=\"$url\" alt=\"$title\" />";
}
}
when i call an image in the template with $image.setWidth(width:px), $title will get the Filename.
If its simple called with $image in the template, the correct title will be shown.
Well, anyone has an idea, how the correct $title can be accessed ?
(Also how i can make changes to File.php,Image.php effects it outside the sapphire folder? for easier maintenance with an update)
the goal would be something like that:
return "<img src=\"$url\" alt=\"$title\" title=\"$MyFileDescription\" />";