Make display of attachment list optional
Susurrus - September 17, 2007 - 20:34
| Project: | Attachment |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
It would be nice if the node view page didn't necessarily display the files listing or the file listing could be specified on a node-type by node-type basis. I don't want the attachments listed at the bottom of my module, I was them to be up a little higher, otherwise it look wrong.

#1
by node-type, and/or by individual node?
#2
By node-type would make the most sense.
#3
I would like to see the option to be tied into the premium module myself so that users who are not authorized to see the node will not see the attachments either.
#4
I don't quite follow. Maybe lack of sleep. Attachments are displayed at the node level. If users are not authorized to see the node, how can they currently see the attachments?
#5
When I was running version Drupal 4.7.3, if the node was marked as premium then the attachments wouldn't show up. I upgraded the site to Drupal 5.2 with premium 5.x-1.x-dev. Now premium is chopping off the node itself at the prescribed length, but the attachments show up at the bottom unless I mark them as hidden.
It looks like the root of the problem is that in theory the user has access to the node, but premium stops them from seeing it all because that is its function. I say that the user in theory has access to the node because they don't receive an access denied message when attempting to view the node.
Both modules are working as designed, but I miss the old way it worked. A workaround seems to be to mark the attachment as hidden and place a hyper link in the body that is past the premium threshold. That will have to get me by for the time being unless someone has a better idea.
What I am ultimately after is that any attachment that is associated with a premium node cannot be seen by a anonymous user no matter what the premium trim settings are set to, and is not accessible by anonymous users who were given the URL by another user.