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   6278 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
simon_w

Forum Moderator, 474 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!