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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

FileIFrameField not displaying a value in popup "Show"


Go to End


1364 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"?