Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » renameField has no effect

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

Page: 1 2
Go to End
Author Topic: 3333 Views
  • Bureau Berg
    Avatar
    Community Member
    7 Posts

    Re: renameField has no effect Link to this post

    Working like charm Thanks.

  • Pipifix
    Avatar
    Community Member
    54 Posts

    Re: renameField has no effect Link to this post

    Hi,

    ist much more easier. You dont have to alter the modeladmincode. In your dataobject modell insert the following code.

    //Overide the tab labels
       static $field_labels = array(
          'Content' => 'Other',
          'EnglishValue' => 'GermanValue',
       );

    Known issue: you cannot change 'main' or 'metadata'.

    Pipifix

  • botheredbybees
    Avatar
    Community Member
    4 Posts

    Re: renameField has no effect Link to this post

    for V3:

    $f = parent::getCMSFields();
    $f->fieldByName('Root.Main')->setTitle('New Name');

    3333 Views
Page: 1 2
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.