Files
faveo/vendor/unisharp/laravel-filemanager/doc/customization.md
Manish Verma 76e85db070 update 1.0.8.0
Commits for version update
2016-10-17 12:02:27 +05:30

1.8 KiB

Documents

  1. Installation
  2. Intergration
  3. Config
  4. Customization
  5. Events
  6. Upgrade

Customization

Feel free to customize the routes and views if your need.

Routes

  1. Copy the routes in /vendor/unisharp/laravel-filemanager/src/routes.php

  2. Make sure urls below is correspond to your route :

CKEditor javascript <script> CKEDITOR.replace( 'editor', { filebrowserImageBrowseUrl: '/your-custom-route?type=Images', filebrowserBrowseUrl: '/your-custom-route?type=Files', }); </script>

And be sure to include the ?type=Images or ?type=Files parameter.

TinyMCE javascript ... var cmsURL = editor_config.path_absolute + 'your-custom-route?field_name='+field_name+'&lang='+ tinymce.settings.language; if (type == 'image') { cmsURL = cmsURL + "&type=Images"; } else { cmsURL = cmsURL + "&type=Files"; } ...

Views

  1. Copy the views from /vendor/unisharp/laravel-filemanager/src/views/ :

    php artisan vendor:publish --tag=lfm_view
    

Translations

  1. Copy vendor/unisharp/laravel-filemanager/src/lang/en to /resources/lang/vendor/laravel-filemanager/<YOUR LANGUAGE>/lfm.php
  2. Change the file according your preferences