mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #7410 from creative-commoners/pulls/3.7/mark-image-title-as-alt-text
NEW Add (alt text) to title field for clarity
This commit is contained in:
commit
8ce6d89e78
@ -131,6 +131,8 @@ class Image extends File implements Flushable {
|
||||
$fileAttributes = $fields->fieldByName('Root.Main.FilePreview')->fieldByName('FilePreviewData');
|
||||
$fileAttributes->push(new ReadonlyField("Dimensions", _t('AssetTableField.DIM','Dimensions') . ':'));
|
||||
|
||||
$fields->fieldByName('Root.Main.Title')->setTitle(_t('Image.TITLE', 'Title (alt text)'));
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user