mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Removed Metadata related fields from RedirectorPage->getCMSFields() (#4747)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92874 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
af41180177
commit
21fe999a3b
@ -111,6 +111,14 @@ class RedirectorPage extends Page {
|
||||
|
||||
$fields = parent::getCMSFields();
|
||||
$fields->removeByName('Content', true);
|
||||
|
||||
// Remove all metadata fields, does not apply for redirector pages
|
||||
$fields->removeByName('MetaTagsHeader');
|
||||
$fields->removeByName('MetaTitle');
|
||||
$fields->removeByName('MetaKeywords');
|
||||
$fields->removeByName('MetaDescription');
|
||||
$fields->removeByName('ExtraMeta');
|
||||
|
||||
$fields->addFieldsToTab('Root.Content.Main',
|
||||
array(
|
||||
new HeaderField('RedirectorDescHeader',_t('RedirectorPage.HEADER', "This page will redirect users to another page")),
|
||||
|
Loading…
Reference in New Issue
Block a user