Prefer a tutorial? Then read “How to Manage Media Assets in Drupal 8“
Yesterday I presented a webinar on how to manage media assets in Drupal 8. The webinar went for just over an hour and we looked at the current state of media management in Drupal 7 and what’s new in Drupal 8.
I spent the rest of the time demonstrating how to:
- Store media assets using Media Entity
- Embedding assets using Entity Embed
- Displaying a browser page to browse and select assets using Entity Browser
5 thoughts on “Webinar: How to Manage Media Assets in Drupal 8”
Re adding videos from the entity browser.
Essentially that list is a set of plugins for EntityBrowserWidget – the entity browser module provides a base class of upload (Drupalentity_browserPluginEntityBrowserWidgetUpload) that currently is extended for some local storage media entity modules (e.g media document, media image etc).
I can’t see any active work in the video embed fields for creating a widget for the browser, but it would be useful to have one.
Something similar to the Upload widget would be a good place to start, looking at the implementation for media_entity_image, looking at the getForm, prepareEntities and submit methods it should be simple(ish) to implement. The main difference would be there is no step for saving a local file prior to creating the actual entity.
The other option you have is to use inline entity forms and it’s media browser module which allows a full entity form plugin for the browser so you could expose the full video entity here.
Thanks for the write up.
Hi Ivan –
Fantastic webinar. I will be sharing it with my community.
I see the biggest value of managing media as separate entities appears to be missing. Updates. When media is used in multiple locations, updating the source Media does not change all the locations.
Do you have any thoughts or solutions for this?
Good question. I didn’t even think of this.
I tested this out and you’re correct. None of the images/thumbnails updated except for the image rendered via the Image formatter on the “/media/1” page.
After a bit of googling I found this issue: https://www.drupal.org/node/2749695
Ivan – I’ve tested is bit more. I’m seeing inconsistent results as well. I’m posting an issue/question to d.o
Thanks for responding.