As of recently, Media.module now tracks file usage on files inserted via WYISWYG. This is awesome...but linking to files is much nicer using Linkit (rather than inserting them via the media module file browser).
The problem is, linkit inserts files using standard hard links. In order to track file usage AND use linkit, we'd need linkit to be able to insert file links using media module token notation, which looks something like this:
[[{"fid":"25348","view_mode":"default","fields":{"format":"default","field_tags[und]":"","field_agency_office[und]":""},"type":"media","link_text":"Justice and Faith Pilot Project_Final Report.pdf","attributes":{"class":"file media-element file-default"}}]]
If linkit had the option (I'd envision a "Insert links to files in media module notation" checkbox on the config page) to insert links in this manner, we could use linkit and track file usage with the new capability in media module.
Comments
Comment #0.0
Rob_Feature CreditAttribution: Rob_Feature commentedchange to recently
Comment #1
gmclelland CreditAttribution: gmclelland commentedSee my comment in #2158107: files: link inserted does not point to download but to entity page ("/file/FID" instead of "/system/files/FILEPATH") for a solution.
Hope that helps
Comment #2
gmclelland CreditAttribution: gmclelland commentedSorry, here is the link to the comment https://www.drupal.org/node/2158107#comment-9062207
Comment #3
anon