Closed (won't fix)
Project:
File Node
Version:
6.x-1.4
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 May 2009 at 22:55 UTC
Updated:
30 Dec 2014 at 07:53 UTC
Jump to comment: Most recent
Comments
Comment #1
yookoala commentedThanks for your comment.
I'm actually working on this "mask" thing.
Please stay tune on this module.
You'll likely be getting it on the next version. :)
Comment #2
yookoala commentedSince I happen to have time these days, I created a new release that provided the feature you want.
Please check these out.
Comment #3
tommyk commentedThis is great! I really like that the file URL is not shown.
The next part that I would ask about is if it is possible for the URL path settings to be followed for nodes. I changed the path from
/node/62to/somefile. When an anonymous user goes to the new path, the URL that gets displayed is/node/62/file.I completely understand why, I'm just hoping that the file can be shown with a custom path also.
What do you think?
Again, thanks for all your work on this, it is extremely helpful and a great feature for Drupal!
Comment #4
yookoala commentedQuick solution for you
If you enabled the path module, you'll get a URL path settings field in your node form to set a masked path for "node/[nid]". So you can make "node/[nid]" to look like "somefile". However, the actual URL of the file is "node/[nid]/file". So masking "node/[nid]" as "somefile" will not do the thing you wanted to do. Instead, you need to mask "node/[nid]/file" as "somefile". To do this, you'll need to go to Administer › Site building › URL aliases › Add alias (http://yourdruaplsite.com/admin/build/path/add) and add a new alias:
This way, the path to your file will looks like "somefile".
Concern before adding a simple file path URL field
Of course, this is not easy. I have some concern over the use of alias.
Alias (URL path settings) is good for visitors. So this feature is quite a good idea. However, if your site have 1000+ alias, they would be hard to manage. Especially when you want to mask both "node/[nid]" and "node/[nid]/file", you'll end up making 2 alias for each filenode. Imagine if you create a node "node/62", that means you'll create 2 paths: "node/62" and "node/62/file". Then you may create 2 path URL for them: "somefile" and "somefile.doc".
I could have add a "File Path URL" field to make this easier, but I fear that would encourage users to create too much alias that may crashes with one another. Or am I thinking too much?
Comment #5
tommyk commentedThanks for the explanation of the Add Alias. I think this is all that I would need. I don't have that many files to manage. I probably would only use aliases for the file paths anyway, because they will only be for users who cannot edit.
I do understand the caution for too many aliases to manage. I wouldn't want you to make this great module too complex.
Thanks again for all the excellent work.
Comment #6
yookoala commentedThanks for your comment.
And thanks for using.
I'm think ways to add it better to the module.
Hope I'd get something useful in the future.
:)
Comment #7
yookoala commented(Feature created)
Comment #8
yookoala commented(Feature created)
(I'm confused by the "Status" here. Just figured out that this one should be "Fixed".)
Comment #9
tommyk commentedEverything was working great using 6.x-1.3 but the URL of the file gets displayed using 6.x-1.4 instead of the path alias.
Comment #10
yookoala commentedDrupal 6 is outdated and hence will not work on this anymore.