Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Media Parent Entity Link

1,050 sites Security covered Drupal 8–11
View on drupal.org

This module allows media entity images to link to the parent entity that is referencing them, rather than linking to the media entity itself. This is particularly useful for displaying images in views, and it works with Image and Responsive Image display formatters.

This module enables you to link image fields of media entities to their referencing (node) entities. You will be able to set up the view mode for the media entity accordingly.

Currently with Drupal Core media handling you are not able to link an image from within a media entity to the parent entity that is referencing the media entity. There is an option to link to "Content", but this will generate a link to the media entity and not to the entity that is embedding/referencing the media entity. Most often user will want to link the image to the parent entity and not to the media entity, especially when using such images in views. While you can achieve this with using field based views, it is not possible to achieve this with views based on view modes. This is where this module comes in to bridge this gap.

Some hints about this module:

  • Currently this module supports display formatters "Image" and "Responsive image".
  • If you check the "Link image to"-setting (from core module) and the "Link to parent entity..."-setting (from this module), the setting "Link to parent entity ..." will take precedence.

Attention: The module now (since version 1.4) supports extending formatters via hook. Blazy integration was tested succesfully. But still each formatter needs to be examined if it's compatible with this module first.

This module is similar to File Entity Link for Drupal 7, though it's not the successor to this module.

Depends on

Dependencies of the latest stable release

  • media Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Nov 2024
Latest release
7 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Core Release date
8.x-1.4 Stable 8–11 Jan 11, 2026
8.x-1.3 Stable 8–11 Nov 6, 2024