jmaumene / media-bundle
Basic media Bundle with administration
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: 2025-01-09 12:13:13 UTC
README
Media-Bundle add media manager, with file browser and upload for ckeditor.
Install
Edit /app/config/AppKernel.php and add :
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
new Liip\ImagineBundle\LiipImagineBundle(),
Edit /app/config/parameters.yml and add :
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
Edit /app/config/routing.yml and add :
_liip_imagine:
resource: "@LiipImagineBundle/Resources/config/routing.xml"
Edit /app/config/config.yml and add :
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"
Dependencies
LiipImagineBunde :
http://symfony.com/doc/current/bundles/LiipImagineBundle/introduction.html
IvoryCKEditorBundle :
http://symfony.com/doc/current/bundles/IvoryCKEditorBundle/installation.html
About
Julien Maumené http://www.maumene.fr