File download link text option?

It seems by default that display_files_for_item() and display_files() return links to files with the filepath as the default link text.

I'd like to only show 'Download' as the link text but can't seem to get that to work by passing options to the functions and looking at the call in Media.php it seems like there's no way to override the filename link text.

Anyone know if this is possible?

I do understand I could loop through the files myself but I want to retain the helper functions that render mediatypes and only effect files with a download link.

Any insight would be appreciated.

Nobody worked with this before?

At the moment, I don't think there's anything you can do to change the text of those links unless you either:

  • Hack _linkToFile in the Media helper to use some text other than the original filename
  • Stop using the Media helper

You could try making a plugin that adds a new display callback for your files' MIME types which outputs a different link, but you'd have to cover every type of file that's currently getting just a link.