Hi,
I've worked through the Extending Silverstripe Tute and am busy creating my own data type for storing Travel Tours.
I'm currently trying to create a Teaser content item on the Main Content Panel of the CMS. The field is showing up there, but it has no Label above it.
Here is my code, largely taken from the Tutorial above:
class Tour extends Page {
static $db = array(
'TourTeaser' => 'Text'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab( 'Root.Content.Main', new TextareaField('TourTeaser'), 'Content' );
return $fields;
}
Have I done something wrong there?