mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
FIX: Unable to remove 'Post Options' tab
This commit is contained in:
parent
523bb31070
commit
c3ac001a0a
@ -321,15 +321,15 @@ class BlogPost extends Page
|
||||
// )->setTitle('Post Options');
|
||||
// $options->setName('blog-admin-sidebar');
|
||||
// $fields->insertBefore($options, 'Root');
|
||||
|
||||
$fields->fieldByName('Root.PostOptions')
|
||||
->setTitle(_t(__CLASS__ . '.PostOptions', 'Post Options'));
|
||||
});
|
||||
|
||||
$fields = parent::getCMSFields();
|
||||
|
||||
$fields->fieldByName('Root')->setTemplate('TabSet_holder');
|
||||
|
||||
$fields->fieldByName('Root.PostOptions')
|
||||
->setTitle(_t(__CLASS__ . '.PostOptions', 'Post Options'));
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user