jmaumene/media-bundle

基本的媒体包,包含管理功能

维护者

详细信息

git.dev2zero.com/symfony/MediaBundle

安装: 7

依赖者: 0

建议者: 0

安全: 0

类型:symfony-bundle

dev-master 2016-10-02 13:11 UTC

This package is not auto-updated.

Last update: 2024-09-19 09:29:55 UTC


README

Media-Bundle 添加媒体管理器,包括文件浏览器和上传功能用于ckeditor。

Latest Stable Version

安装

编辑 /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