Hi there,
For my current project i need to remove some tabs (eg Meta-Data and Reports) from the default cms page view. Studying the documentation didn't really help me.
Any suggestions are welcome .. :)
regards,
wewo
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi there,
For my current project i need to remove some tabs (eg Meta-Data and Reports) from the default cms page view. Studying the documentation didn't really help me.
Any suggestions are welcome .. :)
regards,
wewo
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->removeFieldFromTab("Root.Content", "Meta-data");
$fields->removeFieldFromTab("Root.Content", "Reports");
return $fields;
}
Hi Sam,
Maybe I mixed up some code, but i tried $fields->removeFieldFromTab() without any effect.
Anyway, now it works :)
> $fields->removeFieldFromTab("Root.Content", "Reports");
should be
$fields->removeFieldFromTab("Root", "Reports");
regards,
wewo