Question

I have created a custom content type that has a file field. When I upload a file the node displays the complete file name, test_file.pdf. I would rather display its file name as clickable link. I have tried manage display and set the format to URL to file and it displays "File: site_name.com/sites/default/files/test.txt," which is only text.

Is there anything I am missing?

Was it helpful?

Solution

You are on the right track! Go to "Manage Display" and set the format to "Generic File", it will give you a clickable filename with a link to the file!

OTHER TIPS

I've created a module on drupal.org that provides a formatter that does just that: https://www.drupal.org/project/file_formatters.

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top