Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just what the title says. I work on Intranet sites all day and they all have the problem with regard to files in Drupal. There is no good way to upload a file and associate it to a menu item. I envision you could expose a menu just like node currently does except instead of viewing the file entity it just downloads the file when the menu item is clicked.
Comments
Comment #1
gmclelland CreditAttribution: gmclelland commentedRelated #2003216: Support file/%/download/%disposition-type
Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedI think that this is best left up to another contrib module à la File Entity Revisions which could be mentioned on the File entity project page.
Comment #3
gmclelland CreditAttribution: gmclelland commentedFor what is worth, my work around is to set up a content type called "File Redirect" and then use the https://drupal.org/project/rabbit_hole module which contains a submodule for File Entity integration.
In my "File Redirect" content type I have the following fields:
1. Title
2. File Field which uses the Media browser (named field_redirected_file)
Then I set the rabbit_hole settings to redirect the full node view to
[node:field_redirected_file]
using a 301 redirect.So when someone needs to add a link to a file in a menu they would need to create a "File Redirect" node.
Hope that helps