Update title and description of IFrameTitle field

This commit is contained in:
Robbie Averill 2019-05-17 14:35:01 +12:00
parent 9082db159c
commit 097edbc9c2

View File

@ -50,8 +50,8 @@ class IFramePage extends Page
$fields->removeFieldFromTab('Root.Main', 'Content'); $fields->removeFieldFromTab('Root.Main', 'Content');
$fields->addFieldsToTab('Root.Main', [ $fields->addFieldsToTab('Root.Main', [
$url = TextField::create('IFrameURL', 'Iframe URL'), $url = TextField::create('IFrameURL', 'Iframe URL'),
TextField::create('IFrameTitle', 'Iframe Title') TextField::create('IFrameTitle', 'Description of contents (title)')
->setDescription(_t(__CLASS__ . '.TITLE_DESCRIPTION', 'Used to identify the contents of the Iframe')), ->setDescription(_t(__CLASS__ . '.TITLE_DESCRIPTION', 'Used by screen readers')),
]); ]);
$url->setRightTitle( $url->setRightTitle(
DBField::create_field( DBField::create_field(