Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Remove Tabs


Go to End


3 Posts   5127 Views

Avatar
wewo

Community Member, 7 Posts

21 April 2008 at 7:37pm

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

Avatar
Sam

Administrator, 690 Posts

21 April 2008 at 10:07pm

function getCMSFields() {
$fields = parent::getCMSFields();
$fields->removeFieldFromTab("Root.Content", "Meta-data");
$fields->removeFieldFromTab("Root.Content", "Reports");
return $fields;
}

Avatar
wewo

Community Member, 7 Posts

21 April 2008 at 11:27pm

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