Hi,
Has anyone come across this? When I add a TreeDropdownField control to CMS popup the SimpleHTMLEditorField disappears. Removing the TreeDowndownField brings it back. Also, doesn't matter what order I add the fields.
Thanks,
J
I have small PHP class for a news item:
class NewsItem extends DataObject
{
static $db = array
(
'Heading_' => 'Varchar(100)',
'Body_' => 'HTMLText'
);
static $has_one = array
(
'Page_' => 'HomePage',
'Link_' => 'SiteTree'
);
function getCMSFields_forPopup()
{
global $simplehtml_default_controls; // just removes some buttons
return new FieldSet(new TextField('Heading_', 'Heading'),
new SimpleHTMLEditorField('Body_', 'News', $simplehtml_default_controls),
new TreeDropdownField('Link_ID', 'Link', 'SiteTree'));
}
}