![]() It's my personal preference to always enable the “Name” field in the forms of media types. The difference will be on how the sources are being added and display just like node types. But you can apply the same principals to any other type. To keep things simple in this tutorial, I will concentrate on the “Image” Media type. Media types are entity types just like nodes allowing you to add custom fields and adjust or make new displays to your needs. You can find these under the structure menu. Once the Media module is enabled, it will create the basic media types. Or: In the Drupal’s interface, go to /admin/modules, search for media in the search box, check the Media module and install to enable the module. Using the Drush command: drush en media -y ![]() The “media” module comes with Drupal core so you don’t need to install it. If your Drupal setup already has this module and its sub-modules enabled in your setup, you may want to migrate your setup to the core module “media” following the instructions on the project page at First Things First, Enable the Media Module:Įnable the media module (NOT entity_media). This tutorial is for the core “media” module set up, not to be confused with the contributed module “media_entity” module. It’s basically an entity referencing all kinds of media files like images, videos, documents or other external sources like Tweets, embed videos, etc. ![]() It accomplishes this by creating a bridge relationship between Drupal’s CMS, media files and external sources. This allows Drupal to manage resources that otherwise it would not be able to. One of the best parts of Drupal 8 is the in-core feature of media entities. This is a beginner’s tutorial that will quickly get you up and running with media entities and a media entity browser in Drupal 8.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |