5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 795 Views |
-
How do I create its type for fastening to my page of the files of the type swf

13 May 2009 at 9:50am
I created its type of the page for banner, but how I add the field for loading most banner format swf?
-
Re: How do I create its type for fastening to my page of the files of the type swf

3 June 2009 at 8:47pm
Hi BangMan
You can use a FileIFrameField for flash files.
Aram
-
Re: How do I create its type for fastening to my page of the files of the type swf

3 June 2009 at 9:27pm
Like here?
class SWFPage extends Page {
static $db = array(
'Description' => 'Text',
);
static $has_one = array(
'Flash' => 'FileIFrameField',
);function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Main", new FileIFrameField("Flash",_t('SWFPage.Flash','Flash'), "", $this));
return $fields;
} -
Re: How do I create its type for fastening to my page of the files of the type swf

3 June 2009 at 10:08pm
Almost, but your has_one should look like this:
static $has_one = array(
'Flash' => 'File'
); -
Re: How do I create its type for fastening to my page of the files of the type swf

4 June 2009 at 12:09am Last edited: 4 June 2009 12:10am
thank you, shall try so
| 795 Views | ||
|
Page:
1
|
Go to Top |


