Media Entity Link
This module adds a new "Link" media type to your site. This allows you to manage links to internal or external web pages as if they were media assets, making them easily browsable in the media library and usable in views.
The Media Entity Link module provides a new media type and media source plugin called 'link'.
It allows for the creation of media which is a link to internal or external URLs and resources that can be browsed in the media library and included in any media views.
This can be useful if your website contains a resources section that needs to link to internal or external documentation which are web pages and not PDFs, for example.
This module is designed for Drupal 9+ and is ideal for site builders who need to include links to resources and other URLs using a media type.
Screenshots:
Usage:
- Require the module into your project via Composer:
composer require drupal/media_entity_link. - Enable the module in the UI:
/admin/modules#module-media-entity-linkor via drush:drush en media_entity_link - Go to media types
/admin/structure/mediaand you will see a new media type called Link. - A default link field is automatically added with default field settings. You can now customise or add additional fields at
/admin/structure/media/manage/link/fields - You can now add media of type link in addition to the default media types such as image and video.
Supporting organisations
Pivale are a globally trusted web development company who build Drupal CMS websites and software.
Initial development by Axelerant