Hi,
I'm trying to add a custom dropdown field to the CMS:
<?php
class NewsStory extends Page {
static $db = array(
'Author' => 'Text', <---- this works fine
'Color' => "Enum('Red, Blue, Green','Red')"
);
$fields->addFieldToTab('Root.Main', new DropdownField('Color', 'Your favorite color?'), singleton('NewsStory')->dbObject('Color')->enumValues() );
This doesn't seem to work. Any tips greatly received!
Thanks.