Have a look at the attached picture, The field names won't appear for the two TextareaField's that I'm trying to create in the 'Place' tab, my Page.php code is below.
class Page extends SiteTree {
static $db = array(
'HorizontalSpace' => 'HTMLText',
'VerticalSpace' => 'HTMLText'
);
static $has_one = array(
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Place', new TextareaField('VerticalSpace'), 'Content');
$fields->addFieldToTab('Root.Content.Place', new TextareaField('HorizontalSpace'), 'Content');
return $fields;
}
}
any suggestions? the titles appear when I use TextField