localgov icon indicating copy to clipboard operation
localgov copied to clipboard

Install 'Media Entity Usage' or 'Entity Usage'

Open willguv opened this issue 2 years ago • 7 comments

In /admin/content/files the "used in" column shows number of uses of a specific asset

Image

It appears to be a link, but clicking on it does nothing

Would be really useful to click and see urls where an asset is used

willguv avatar Nov 20 '23 11:11 willguv

Stephen: It's a UI issue

  • Click on the "2 places" link above and be taken to a page with links to the places
  • Need to take into account images used in blocks

Jamie says there's a way to show "usage"

willguv avatar Mar 13 '24 14:03 willguv

For media, perhaps it's this module: https://www.drupal.org/project/media_entity_usage

stephen-cox avatar Mar 13 '24 14:03 stephen-cox

@stephen-cox yes, Webcurl have confirmed that we are using that module. It works for all types of media.

Entity usage module on Wirral website

Dixonj1 avatar Mar 18 '24 18:03 Dixonj1

@dedavidson suggests https://www.drupal.org/project/entity_usage

willguv avatar Apr 29 '24 11:04 willguv

Entity usage should already be installed

$ composer why drupal/entity_usage
localgovdrupal/localgov_paragraphs 2.4.3 requires drupal/entity_usage (^2.0@beta)

andybroomfield avatar Apr 29 '24 11:04 andybroomfield

It just needs configuration for it to be shown by default for Media.

dedavidson avatar Apr 29 '24 13:04 dedavidson

Hide the 'files' tab to non admins please @markconroy

willguv avatar May 23 '24 10:05 willguv

Hi @stephen-cox @markconroy when will I see this in action please? Does the Demo site rebuild every night with the latest stuff? Thanks

willguv avatar May 28 '24 14:05 willguv

@markconroy @stephen-cox could you check Editors, Authors and Contributors can see the Usage tab please? I just logged in as Editor on the Demo site and couldn't see it

Thanks

willguv avatar Jun 03 '24 13:06 willguv

@willguv I don't have access to the repo/build tools for the demo site, so can't really test it.

If the latest version of the profile is installed the tab should be there, unless those roles don't have permission to view it.

@stephen-cox is probably best to test this is working on the demo site.

=== Thanks to Big Blue Door for sponsoring my time to work on this.

markconroy avatar Jun 05 '24 10:06 markconroy