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

Rob_Feature’s picture

Issue summary: View changes

change to recently

gmclelland’s picture

gmclelland’s picture

Sorry, here is the link to the comment https://www.drupal.org/node/2158107#comment-9062207

anon’s picture

Status: Active » Closed (works as designed)