Jump to:

5554 Posts in 1742 Topics by 1227 members

Customising the CMS

SilverStripe Forums » Customising the CMS » FileIFrameField not displaying a value in popup "Show"

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

Page: 1
Go to End
Author Topic: 1023 Views
  • baba-papa
    Community Member
    279 Posts

    FileIFrameField not displaying a value in popup "Show" Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.