Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 1.01 KB

module.md

File metadata and controls

23 lines (21 loc) · 1.01 KB

Module configure

Property

  • uploadFolder the directory where stored files. Default is @app/web/uploads/images. If folder not existed, roxy will auto-create it.
  • uploadUrl the url which can get folder link. Default is /uploads/images. If you are using yii2-advanced should include scheme (http://frontend.domain.com/uploads/images).
  • defaultView display type. Default is thumb
  • dateFormat Datetime format. Default is Y-m-d H:i. See: http://php.net/manual/en/function.date.php
  • rememberLastFolder would you want to remember last folder? Default is true
  • rememberLastOrder would you want to remember last order? Default is true
  • allowExtension allowed files extension. Default is jpeg jpg png gif mov mp3 mp4 avi wmv flv mpeg webm

Example

Add to config file:

'modules' => [
    'ckeditorRoxyFileman' => [
        'class' => 'nickdenry\ckeditorRoxyFileman\Module',
        'uploadFolder' => '@frontend/web/uploads/images',
        'uploadUrl' => '/uploads/images',
    ],
],