Glitchbone / octobercms-filetranslate-plugin

Enables multi-lingual file upload attributes in October CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:HTML 62.3%Language:PHP 37.7%