Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » removefieldFromTab - Doesn' t remove Tap on other Language

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

Page: 1
Go to End
Author Topic: 2104 Views
  • Andre
    Avatar
    Community Member
    126 Posts

    removefieldFromTab - Doesn' t remove Tap on other Language Link to this post

    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');

  • Andre
    Avatar
    Community Member
    126 Posts

    Re: removefieldFromTab - Doesn' t remove Tap on other Language Link to this post

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

    2104 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.