Active
Project:
Media entity embeddable video
Version:
8.x-1.x-dev
Component:
Documentation
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2016 at 07:43 UTC
Updated:
5 Mar 2020 at 18:33 UTC
Jump to comment: Most recent
Comments
Comment #2
slashrsm commentedThere are some docs in our media guide: https://drupal-media.gitbooks.io/drupal8-guide/content/modules/media_ent...
It is still very basic. We are looking for contributors.
Comment #3
markconroy commentedHi Zizzer,
Media is handled in Drupal 8 much differently to how it is handled in Drupal 6. For one, each media item (video, image, etc) is an entity of its own, like a node is in Drupal 6.
What you will need is to create a media 'Bundle' (like a content type in Drupal 6) and then create some media items (links to videos, uploaded images, etc). You then create a 'reference' field to 'refer' to a media item in your node.
While the above is conceptual, the steps you need to follow to add a video field are:
Modules:
Creating media bundle for video:
We now have a media bundle with a field that can accept links to videos.
Adding media items to content:
We now have a media reference field on our content type.
Putting it all together:
Viola!
P.S. You might need to play around with your 'Manage Display' settings on the media bundle and the content type to get the video to display as you wish.
@slashrsm - I've cloned the media docs guide from GitHub and will add a version of this as a pull request to it.
Comment #4
xjm