FIX: Unable to remove 'Post Options' tab

This commit is contained in:
Loz Calver 2018-07-09 10:58:10 +01:00
parent 523bb31070
commit c3ac001a0a

View File

@ -321,15 +321,15 @@ class BlogPost extends Page
// )->setTitle('Post Options'); // )->setTitle('Post Options');
// $options->setName('blog-admin-sidebar'); // $options->setName('blog-admin-sidebar');
// $fields->insertBefore($options, 'Root'); // $fields->insertBefore($options, 'Root');
$fields->fieldByName('Root.PostOptions')
->setTitle(_t(__CLASS__ . '.PostOptions', 'Post Options'));
}); });
$fields = parent::getCMSFields(); $fields = parent::getCMSFields();
$fields->fieldByName('Root')->setTemplate('TabSet_holder'); $fields->fieldByName('Root')->setTemplate('TabSet_holder');
$fields->fieldByName('Root.PostOptions')
->setTitle(_t(__CLASS__ . '.PostOptions', 'Post Options'));
return $fields; return $fields;
} }