Hi There,

Motivation: this is a gap to the Sector D7 govt KIT and is really important for editorial staff!

The entity usage module should get us halfway there!
https://www.drupal.org/project/entity_usage/

I would like to replicate the Sector D7 set-up:
1 - the list under /admin/content/media has a usage column, with a usage value
2 - counts should include the media upload fields and the CK editor embeds (in Sector/Drupal 7 revisions were counted as well)
3 - the usage count is linked to a list of nodes

Ta,

Heike

Comments

HeikeT created an issue. See original summary.

heiket’s picture

Title: Allow editorial users to see where files are used via the media managment » Allow editorial users to see where media entities are used via the media managment
danielveza’s picture

Status: Active » Needs review
StatusFileSize
new7.37 KB

Agreed with @HeikeTs approach with Entity usage. It's a good module that's well supported, and does what we need out of the box.

Only small thing I found is a bug/improvement where the per node reporting could be better, and I've written a patch and included that.

Drupal.org issue on the Entity Usage queue is #3151920: Entity only tracked once per Node

heiket’s picture

Also included in this fix is: An extended error message is shown to the users when a media entity is deleted that is used, and the message is linked to the usage screen. 

Ta!

danielveza’s picture

Issue summary: View changes
StatusFileSize
new10.04 KB
new24.32 KB

Yep - This is done now.

If the Media entity has any usages it displayed additional help text to make it clear.

  • DanielVeza committed 1ac1fc3 on 5.0.x
    Issue #3150751 by DanielVeza, HeikeT: Allow editorial users to see where...
danielveza’s picture

Status: Needs review » Fixed

Passed internal testing from @HeikeT. Committed.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.