-
Notifications
You must be signed in to change notification settings - Fork 9
Show usage in the Media view #298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@ekes wonders if this could be done with a view column and https://git.drupalcode.org/project/media_entity_usage |
Quick look, Media Entity Usage:
|
We're blocked on this because the module is not Drupal 11 yet |
Oh, in addition only counting nodes and paragraphs: I don't think this is going to count linkit media usage either. We just introduced that? |
Ah that's better. We've got - now I remember the discussion about it going in! https://www.drupal.org/project/entity_usage which does count all of the above, and have a D11 release. |
@ekes that's brilliant. If this is doable, I'd really like this in and usable by the end of May |
Transfered to localgov_core as that's where localgov_media is at the moment. This override is going to be like the one to views.view.files.yml (see my comment about finding a better home for that #297 (comment) ) |
PR #299 |
Wow, fast! Thanks @ekes As I can't install this right now, does this follow the same UX as paragraphs? /admin/content/paragraphs A column with "Used" as a heading, immediately to the left of the changed/ updated column? |
Screenshot on PR. 'Usage count' is the title - can change that, if 'Used' is clear, it's shorter. Presently it's the last column before the dropdown - it could be between status and updated. Then the number is a link to the /media/{id}/edit/usage page. |
@ekes shall we follow same pattern as paragraphs?
Do we allow sorting by used? Think we should |
Love it, thanks!! |
* Admin media view with added usage column #298. * Update hook for #298 if the view has not otherwise been changed. * UI tweaks rename and move column #298 (comment) * Allow sorting by count. * Coding standards fixes. * Further coding standards. The return type for TranslatableMarkup still seems not to have been fixed in core, so mildly irritating to have to decide it here.
Is it possible to show usage on this page?
/admin/content/media
Mentioned at the images content group session
As a content designer
I want to see at a glance the media that isn't be used
So I can delete it from the site
The text was updated successfully, but these errors were encountered: