Jump to:

10990 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » KickAssets: Set Upload Folder

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 540 Views
  • Hello_electro
    Community Member
    80 Posts

    KickAssets: Set Upload Folder Link to this post

    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;

  • neilcreagh
    Community Member
    94 Posts

    Re: KickAssets: Set Upload Folder Link to this post

    Did you ever get this sorted? I'm trying to set the default folder for uploads via Kickassets and can't get it working.

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.