Hi,
using nested DOM with SimpleTreeDropdownField the setEmptyString is not working anymore...
Can someone please enlighten me whats wrong with my code??
Thanks much in advance
patte ;-)
function getCMSFields()
{
return new FieldSet(
$dropdown = new SimpleTreeDropdownField("MyUrlID", "Bitte waehlen Sie das Ziel aus", "SiteTree"),
new TextField('Ueberschrift'),
new SimpleWysiwygField('Beschreibung'),
new ImageField('Bild'),
new FileDataObjectManager(
$this,
'Downloads',
'Download',
'Attachment',
array('Name' => 'Name','Description' => 'Description')
)
);
$dropdown->setEmptyString('-- Please select --');
}
UPDATE: sorry guys, problems resolved
function getCMSFields()
{
$f = new FieldSet(
$dropdown = new SimpleTreeDropdownField("MyUrlID", "Bitte waehlen Sie das Ziel aus", "SiteTree"),
new TextField('Ueberschrift'),
new SimpleWysiwygField('Beschreibung'),
new ImageField('Bild'),
new FileDataObjectManager(
$this,
'Downloads',
'Download',
'Attachment',
array('Name' => 'Name','Description' => 'Description')
)
);
$dropdown->setEmptyString('-- Please select --');
return $f;
}