mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #545 from kinglozzer/removable-tab
FIX: Unable to remove 'Post Options' tab
This commit is contained in:
commit
991000dddf
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user