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.

Customising the CMS /

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

removefieldFromTab - Doesn' t remove Tap on other Language


Go to End


2 Posts   2828 Views

Avatar
Andre

Community Member, 146 Posts

27 May 2009 at 10:35pm

Hi there, if I use

$fields->removefieldFromTab('Root.Content', 'Meta-data');

the Root.Content.Meta-data Tab will be hidden in the Backend, if I choose english for my Language. But, if I change the Lanuage to german where Meta-data is called Metadaten, the Tab isn't removed. This is not that big Problem, but I'm writing a module which should be available in more Languages than german and english.

Is the only chance, to remove this tab in other languages, to add it as removefield for every language?

$fields->removefieldFromTab('Root.Content', 'Metadaten');

Avatar
Andre

Community Member, 146 Posts

27 May 2009 at 10:38pm

Found a solution. 'Meta-data' is already a translation. The Field normaly is called 'Metadata'.