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.

Archive

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

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

Remove Content Field from CMS Tab


Reply

3 Posts   6085 Views

Avatar
sonicparke

6 February 2008 at 10:28am 74 Posts

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
simon_w

6 February 2008 at 10:40am Forum Moderator, 474 Posts

From BlogHolder.php:

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

Avatar
sonicparke

6 February 2008 at 10:47am 74 Posts

Well that makes a lot of sense! Thanks!