So, has anyone attempted to set the upload folder after utilizing the KickAssets feature by UncleCheese?
My files now seem to just be sent to my "uploads" folder and not the folder specified. Any thoughts?
class FeaturedEventsPage extends Page {
static $db = array(
'Headline' => 'Text',
'SubText' => 'Text',
'NoticeDateFrom' => 'Date',
'NoticeDateTo' => 'Date',
'NoticeActive' => "Enum('Active, Inactive','Active')",
);
static $has_one = array(
'ImageCover' => 'File'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Main", new TextField('Headline'), 'Content');
$fields->addFieldToTab("Root.Content.Main", new TextField('SubText'), 'Content');
$fields->addFieldToTab("Root.Content.Main", new DatePickerField('NoticeDateFrom'), 'Content');
$fields->addFieldToTab("Root.Content.Main", new DatePickerField('NoticeDateTo'), 'Content');
$fields->addFieldToTab("Root.Content.Main", new DropdownField( 'NoticeActive' , 'This Featured Event Is...', array(
'Active' => 'Active',
'Inactive' => 'Inactive'
),$this->NoticeType), 'Content');
$fields->addFieldToTab("Root.Content.ImageCover", new FileAttachmentField('ImageCover', null, null, null, null, "FeaturedEventCovers"));
return $fields;
}