I have added a box to my CMS using a HomePage.php page. When I view the 'Scroller' box in the CMS it is only a single line long and is only text. Please would someone let me know how to get the functionality and size of the 'Content' box in an additional input box.
Many thanks
Michelle
class HomePage extends Page {
static $db = array(
'Scroller' => 'Text'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new TextField('Scroller'), 'Content');
return $fields;
}
static $has_one = array(
);
}
class HomePage_Controller extends Page_Controller {
}