Active
Project:
Drupal core
Version:
main
Component:
entity system
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Jun 2016 at 12:11 UTC
Updated:
27 Jun 2016 at 07:15 UTC
Jump to comment: Most recent
Comments
Comment #2
xjmComment #3
berdirI don't get this, did you maybe mean *field* types? image and file are the same entity type :)
The easiest way to do this is a link field + the field formatters provided by url_embed, either directly on entity/node or through media_entity, if you want to have a media library of used youtube URL's. Either way, I think this and similar points are IMHO not convincing arguments for making the audio/video formatters experimental as I commented there.
Yeah, what we did in our install profile is to have a file field and have a custom formatter that supports images and a few other options. To go all the way there and e.g. also allow youtube videos, galleries and so on in the same field, you need to work with media_entity. We have separate fields for those use cases.