jmaumene / media-bundle
基本的媒体包,包含管理功能
dev-master
2016-10-02 13:11 UTC
Requires
- php: ^5.5.0 || ^7.0
- egeloen/ckeditor-bundle: ^4.0
- liip/imagine-bundle: ^1.6
This package is not auto-updated.
Last update: 2024-09-19 09:29:55 UTC
README
Media-Bundle 添加媒体管理器,包括文件浏览器和上传功能用于ckeditor。
安装
编辑 /app/config/AppKernel.php 并添加
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
new Liip\ImagineBundle\LiipImagineBundle(),
编辑 /app/config/parameters.yml 并添加
jmedia_upload_dir: 'uploads/media'
jmedia_upload_max_size: 20M
jmedia_upload_mime_type:
- image/jpeg
- image/bmp
- image/gif
- image/x-icon
- image/png
- image/tiff
编辑 /app/config/routing.yml 并添加
_liip_imagine:
resource: "@LiipImagineBundle/Resources/config/routing.xml"
编辑 /app/config/config.yml 并添加
liip_imagine:
filter_sets:
media_thumb_128x128:
filters:
thumbnail: { size: [128, 128], mode: outbound }
ivory_ck_editor:
default_config: my_config
configs:
my_config:
extraPlugins: "uploadimage"
filebrowserImageBrowseUrl: '/jmbrowser/'
plugins:
widget:
path: "/bundles/jmaumenemedia/widget/"
filename: "plugin.js"
filetools:
path: "/bundles/jmaumenemedia/filetools/"
filename: "plugin.js"
notificationaggregator:
path: "/bundles/jmaumenemedia/notificationaggregator/"
filename: "plugin.js"
uploadwidget:
path: "/bundles/jmaumenemedia/uploadwidget/"
filename: "plugin.js"
uploadimage:
path: "/bundles/jmaumenemedia/uploadimage/"
filename: "plugin.js"
lineutils:
path: "/bundles/jmaumenemedia/lineutils/"
filename: "plugin.js"
notification:
path: "/bundles/jmaumenemedia/notification/"
filename: "plugin.js"
依赖
LiipImagineBunde
https://symfony.com.cn/doc/current/bundles/LiipImagineBundle/introduction.html
IvoryCKEditorBundle
https://symfony.com.cn/doc/current/bundles/IvoryCKEditorBundle/installation.html
关于
Julien Maumené http://www.maumene.fr