+ All Categories
Home > Technology > Media management with Drupal

Media management with Drupal

Date post: 18-Jun-2015
Category:
Upload: propeople
View: 55 times
Download: 0 times
Share this document with a friend
Description:
An introduction into File Entity and Media module concepts, usage, with demo and some other sauce like ways to extend it and improve the UI. This seems very important for most beginners in Drupal as Drupal core does not provide with a clean path of media management and site-builders have to know their tools.(http://wearepropeople.com)
Popular Tags:
39
By Alexei Gorobets asgorobets
Transcript
Page 1: Media management with Drupal

By Alexei Gorobetsasgorobets

Page 2: Media management with Drupal

* Technical Leader @ Propeople* 3 years in Drupal* Drupal Moldova Association co-founder* Trainer

Page 4: Media management with Drupal
Page 5: Media management with Drupal

* Devs* Site-builders* Front-end devs* PM

Page 6: Media management with Drupal

1. File management in Drupal in the past2. Media module out of the box3. Extending Media module4. Alternatives

Page 7: Media management with Drupal

Hundreds of [field-type] CCK modules for every provider (Youtube, Vimeo, S3)

Tens of duplicates, no code reuse and developers inventing the wheel from scratch

No common approach and generic API for developers to extend and work with

Page 8: Media management with Drupal
Page 9: Media management with Drupal

File field is in core! Yaaay!

Page 10: Media management with Drupal
Page 11: Media management with Drupal
Page 12: Media management with Drupal
Page 13: Media management with Drupal
Page 14: Media management with Drupal
Page 15: Media management with Drupal

* File Entity - fieldable and viewable files

Page 16: Media management with Drupal
Page 17: Media management with Drupal

* File Entity - fieldable and viewable files* File types - Image, Document, Video, Audio

Page 18: Media management with Drupal
Page 19: Media management with Drupal
Page 20: Media management with Drupal
Page 21: Media management with Drupal

* File Entity - fieldable and viewable files* File types - Image, Document, Video, Audio* StreamWrappers

Page 22: Media management with Drupal

Core StreamWrapperspublic://images/1.jpgprivate://docs/restricted_file.pdftemporary://docs/restricted_file.pdf

Contrib modules: (Remote files)s3://images/1.jpgdropbox://images/1.jpg

Make your own:foobar://path/to/file/awesome.jpg

Page 23: Media management with Drupal

* Media widget (field widget)* Media Wysiwyg* Media Browser plugins* Ability to write custom Media Browser plugins

Page 24: Media management with Drupal
Page 25: Media management with Drupal
Page 26: Media management with Drupal
Page 27: Media management with Drupal
Page 28: Media management with Drupal
Page 29: Media management with Drupal
Page 30: Media management with Drupal

[[{"fid":"3","view_mode":"default","fields":{"format":"default"},"type":"media","attributes":{"class":"media-element file-default"}}]]

Page 31: Media management with Drupal
Page 32: Media management with Drupal
Page 33: Media management with Drupal
Page 34: Media management with Drupal
Page 35: Media management with Drupal
Page 36: Media management with Drupal
Page 37: Media management with Drupal
Page 38: Media management with Drupal

Demo

Page 39: Media management with Drupal

Recommended