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.

Customising the CMS

renameField has no effect


Reply

11 Posts   3469 Views

Avatar
Bureau Berg

27 January 2012 at 11:43pm Community Member, 7 Posts

Working like charm :-) Thanks.

Avatar
Pipifix

16 March 2012 at 5:00am Community Member, 54 Posts

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

Avatar
botheredbybees

10 May 2013 at 12:09pm Community Member, 4 Posts

for V3:

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