Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

FileIFrameField not displaying a value in popup "Show"


Reply


1062 Views

Avatar
baba-papa

Community Member, 279 Posts

20 November 2009 at 10:32pm

My class "Product extends DataObject" is shown in a ComplexTableField in the backend. I defined the fields to popup in the fifth parameter of the ComplexTableField:

$productDetails = new FieldSet(
new TextField('name', 'Name'),
new TextareaField('shortDescription', 'Kurzbeschreibung'),
new TextareaField('description', 'Beschreibung'),
new SimpleImageField('image', 'Bild'),
new FileIFrameField('pdf', 'Datenblatt'),
new DropdownField('manufacturerID', 'Hersteller', $IDandName),
new CheckboxSetField('mountingmode', 'Montageart', $IDandMountingMode)
);


The popup "Show" shows values for all fields exept for the new FileIFrameField('pdf', 'Datenblatt'). The popup "Edit" shows the uploaded file. "pdf" is a relationship of "Product":

static $has_one = array(
'manufacturer' => 'Manufacturer',
'categories' => 'Category',
'image' => 'Image',
'pdf' => 'File'


How can I get the filename as the value of the popup "Show"?