17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1009 Views |
-
push FileIFrameField

9 August 2008 at 4:20pm Last edited: 9 August 2008 4:39pm
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;
}
} -
Re: push FileIFrameField

9 August 2008 at 5:36pm
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.
-
Re: push FileIFrameField

9 August 2008 at 6:43pm
I suspect you're right - the popup already has an iframe, so an iframe included inside one just sounds like madness. xD
-
Re: push FileIFrameField

9 August 2008 at 7:09pm
yeah, so it would help if FileField was handled the same in a IFrame is ImageField is.
regardless, I can finish this project!!!
| 1009 Views | ||
|
Page:
1
|
Go to Top |


