9526 Posts in 1941 Topics by 1529 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 104 Views |
-
KickAssets has_one Image question

18 December 2011 at 12:07pm
Hi
This question is probably for UncleCheese
I am using your KickAssets plugin which works great. But I am curious why it is not affecting the standard upload for a basic $has_one array.
static $has_one = array(
'FBHolderImage' => 'Image'
);Should this be using the new kickassets interface as well?
-
Re: KickAssets has_one Image question

18 December 2011 at 12:10pm
Nevermind!
Solved below: Use FileAttachmentField
static $has_one = array(
'FBHolderImageNew' => 'File'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.FaceBookHolder", new FileAttachmentField('FBHolderImageNew', null, null, null, null, "FaceBookImages"));return $fields;
}
| 104 Views | ||
|
Page:
1
|
Go to Top |

