Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

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.

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
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

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