Skip to content

Glitchbone/octobercms-filetranslate-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File translation plugin

Enables multi-lingual file upload attributes in October CMS

Usage

Translate plugin must be installed first

Download the repo, move it inside the plugins/glitchbone/filetranslate folder and register the plugin with October CMS :

php artisan october:up

Use Glitchbone\FileTranslate\Models\File in your model attachment configuration :

public $attachOne = [
    'thumbnail' => 'Glitchbone\FileTranslate\Models\File'
];

public $attachMany = [
    'photos' => 'Glitchbone\FileTranslate\Models\File'
];

Use the mlfileupload form widget in your model fields.yaml :

thumbnail:
    label: Thumbnail
    type: mlfileupload
    mode: image
    imageWidth: 200
    imageHeight: 200
photos:
    label: Photo gallery
    type: mlfileupload
    mode: image
    imageWidth: 200
    imageHeight: 200

License

File translation plugin is available under the MIT license. See the LICENSE file for more information.

About

Enables multi-lingual file upload attributes in October CMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published