I have a "Document" media bundle, and I have a custom view mode called "Embed".
In that view mode, I have removed everything except the
media name property and my
document file field.
media name the only format available is
plain text, with an option to "Link to Media". This provides a link like
media/2, where you can click on a link to download the file.
document field, I get
Generic file (the file name with a link to it),
Table of files, and
URL to file.
Does anyone have a simple way to generate a link like
Generic file but show the
media name instead of the file name? e.g.