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   4196 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, 685 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