Has anyone had any luck with the ModelAdmin generating an interface for a DataObject with more than one file field?
code so far:
class FeaturedInitiatives extends DataObject
{
static $db = array (
'Title' => 'Text',
'Description' => 'HTMLText'
);
static $has_one = array (
'Thumb' => 'File',
'ShadedThumb' => 'File',
'MainImage' => 'File'
);
public function getCMSFields()
{
return new FieldSet(
new TextField('Title'),
new HTMLEditorField('Description'),
new FileIFrameField('Thumb'),
new FileIFrameField('ShadedThumb'),
new FileIFrameField('MainImage')
);
}
}
The UI, after saving an object, lacks and scrollbar and only displays a single file field.
Also, I tried this with ImageFields and had no luck either.
Regards,
Todd