Hello there,
I've got a little Question, is it possible to change the label of the Content field shown in the Admin Center? If not, maybe disabling this field would help me too. Thanks in advance
FlorianH
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Hello there,
I've got a little Question, is it possible to change the label of the Content field shown in the Admin Center? If not, maybe disabling this field would help me too. Thanks in advance
FlorianH
This doc page shows you how to remove and rename fields. This can be applied to all, not just content.
http://doc.silverstripe.com/doku.php?id=getcmsfields&s=removefieldfromtab
This method doesn't exist anymore, I get an error and the API Doc doesn't list it.
You using trunk? I know its in trunk as Im using it :P and I would assume its in 2.2.2 as well.
It is in the docs - http://api.silverstripe.com/forms/fields-structural/FieldSet.html
No I'm using 2.2.2 currently, since trunk won't work for me (http://www.silverstripe.com/site-builders-forum/show/179914)
I don't see it in the doc, searched with Firefox for "renameField".
Object::__call() Method 'renameField' not found in class 'FieldSet'
Yea rename field might only be in trunk sorry, But what you can do is remove the field then re add it
$fields->removeByName('Content');
$fields->addFieldToTab("Root.Content.Main", new HTMLEditorField("Content", "My New Label"));
Still doesn't work, a message box pops up with "There has been an error" when I select the site in the CMS.
Can you find out what the error is? If you have Firebug for firefox installed you should view under the 'console' view in firebug you should see all the requests. Click on the little arrow next to the failing request (it will be red), click the load response button and it should show you a more useful error