Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » push FileIFrameField

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1129 Views
  • Blackdog
    Avatar
    Community Member
    156 Posts

    push FileIFrameField Link to this post

    Any idea why FileIFrameField would fail in SS 2.2.2 within the following?

    class Track extends DataObject {
       
       static $db = array(
          'Band' => 'Varchar(255)',
          'TrackTitle' => 'Varchar(255)'
       );
       
       static $has_one = array(
          'MySongs' => 'Songs',
          'FileName' => 'File'
       );
          
       function getCMSFields_forPopup() {
          $fields = new FieldSet();
          $fields->push( new TextField( 'Band', 'Band Name' ) );
          $fields->push( new TextField( 'TrackTitle', 'Track Title' ) );
          $fields->push( new FileIFrameField( 'FileName', 'File' ) );
          return $fields;
       }
    }

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: push FileIFrameField Link to this post

    ok I changed FileIFrameField to ImageField and kept the TrackTitle type as File and it works fine.

    I can only assume the problem lays with FileIFrameField when it is within the popup.

    cheers.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: push FileIFrameField Link to this post

    I suspect you're right - the popup already has an iframe, so an iframe included inside one just sounds like madness. xD

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: push FileIFrameField Link to this post

    yeah, so it would help if FileField was handled the same in a IFrame is ImageField is.

    regardless, I can finish this project!!!

    1129 Views
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.