drupal-media / d8-guide

Definitive guide on how to integrate and develop with Drupal Media.
http://drupal-media.gitbooks.io/drupal8-guide/
38 stars 29 forks source link

Explain the differences between Media entities and File entities #37

Open mariano-dagostino opened 8 years ago

mariano-dagostino commented 8 years ago

File entity provides interfaces for managing files. It also extends the core file entity, allowing files to be fieldable, grouped into types, viewed (using display modes) and formatted using field formatted.

vs

Media entity provides a 'base' entity for media. This is a very basic entity which can reference to all kinds of media-objects (local files, YouTube videos, Tweets, Instagram photos, ...). Media entity provides a relation between Drupal and the media resource.

From those 2 descriptions from file_entity module and media_entity module, I may be hard for a site builder to decide whether to use a Fieldable entities or Media entities to achieve different use cases.

Take a look to the first 5 minutes of this video https://www.youtube.com/watch?v=vyav4VBuLng for more context.

geek-merlin commented 7 years ago

I'm just about modelling a complex site and torn between the 2 approaches, so let's share some notes:

(x): Note: It might make sense to build bridges here.

My gut feeling is that most traction is going to the more generic media entities, so it might make sense to focus on this and cover the missing spots (like (BU) above).

dreamfony commented 7 years ago

For reference I would just add this answer

http://drupal.stackexchange.com/questions/228249/image-and-media-best-practices/228260#228260