Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Media View Add-ons

No security coverage Under active development 16 sites

This module adds an "edit links" column to the media library view. This column displays links to edit the top-level nodes that use each media item. It supports multiple nodes referencing the same media, showing them as a dropdown list of edit links.

Media View Add-ons provides a Views Plugin which adds an additional column to the Media View (/admin/content/media) that displays edit links to the top level nodes each media image belongs to.

The plugin basically provides an additional "dummy" field to the default media View and makes uses of the media image ID to generate a list of links to node edit pages for each media image row.

The module scans all the image fields on your current installation as well as the entity reference revision fields (sites commonly use this type to reference paragraphs on nodes). Then, entities referencing media images through these fields are retrieved recursively until a top level node entity is found for each initial image.

A list of node edit links is added to the newly introduced View column. Multiple nodes can reference directly or indirectly - through an entity reference revision field - the same media image. In this case, more than one links will be added (as operation drop downs) to the new column.

The module can be expanded to include more entity types and a wider range of possible scenarios.

A hook is also offered to alter the links (title and url) this module provides. A possible scenario for that would be a need to display additional information in the link text for each top level node (e.g. if domain access module is enabled on the site, the hook provided could be used to add node domain information to the link text).

Requirements

* Media module
* Entity Reference Revisions module

Configuration

Enable the module as usual.

Edit the media view (/admin/structure/views/view/media/edit/media_page_list) and add a media ID field ("Exclude from display"), then add the "Media view add-ons top level node" field (under "Media View Add-ons").

This will provide you with a new column with links to edit the top level node each media image belongs to.

Drupal 8–10 · not 11

Ask your assistant about Media View Add-ons

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-2.1 Stable 8–10 Oct 6, 2023
8.x-2.0 Stable 8–10 Oct 6, 2023