Problem/Motivation
Many sites leverage the Entity Usage contributed module to track entities and their relationship to other entities. The Entity Usage module provides a configuration page (/admin/config/entity-usage/settings) where users can opt certain elements/entities into tracking.
While Entity Usage provides support out of the box to track media added by Media Directories via the core media embed button or the link button, there is not coverage for the "Insert file link" CKEditor button provided through the media_directories_file_link submodule. Therefore, media added through this button is not tracked. This can impact user workflows that leverage media tracking through the entity_usage table.
Proposed resolution
Provide an EntityUsageTrack plugin for media embedded with tags so users can opt to include that media in the entity_usage table.
Remaining tasks
- [ ] Create Entity Usage tracking plugin
- [ ] Test plugin
User interface changes
- Adds a new tracking plugin on the Entity Usage configuration page for users leveraging the Entity Usage contrib module
API changes
NA
Data model changes
NA
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | media-directories-file-link-tracking-plugin-3612560-3.patch | 2.01 KB | inregards2pluto |
| #3 | media-directories-file-link-tracking-plugin-3612560.png | 133.43 KB | inregards2pluto |
Issue fork media_directories-3612560
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
inregards2plutoAdded tracking plugin! I based it off of the existing plugin for the core CKEditor Media Embed button. Tested and it appears to work correctly, but would appreciate review from someone else. I created an MR and a corresponding patch.
Comment #4
inregards2plutoComment #6
rang501 commentedThanks for the detailed issue description and the fix.
It looks fine to me, so I'll merge it.
Comment #7
rang501 commented