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.

Archive /

Our old forums are still available as a read-only archive.

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

Remove Content Field from CMS Tab


Go to End


3 Posts   13322 Views

Avatar
sonicparke

74 Posts

6 February 2008 at 10:28am

Does anybody know how I would do this? Specifically for a custom page type where I'm only using text fields and not the HTML Editor field (Content).

Avatar
(deleted)

Community Member, 473 Posts

6 February 2008 at 10:40am

From BlogHolder.php:

$fields = parent::getCMSFields();
$fields->removeFieldFromTab("Root.Content.Main","Content");

Avatar
sonicparke

74 Posts

6 February 2008 at 10:47am

Well that makes a lot of sense! Thanks!