Files
faveo/vendor/unisharp/laravel-filemanager/doc/customization.md
2016-06-13 20:41:55 +05:30

1.4 KiB

Documents

  1. Installation
  2. Intergration
  3. Config
  4. Customization

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_views