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.

Archive

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

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

Remove Tabs


Reply

3 Posts   4115 Views

Avatar
wewo

21 April 2008 at 7:37pm Community Member, 7 Posts

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

21 April 2008 at 10:07pm Administrator, 685 Posts

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

Avatar
wewo

21 April 2008 at 11:27pm Community Member, 7 Posts

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