By tttt on
Hi, I am currently using drupal 6.14. I have content types with files attached via the file attachments. Now I have to disable file attachments but I still need to display the old ones that were already created. When I disable, it takes it away from the view page. Any suggestions??
Thanks!
Comments
I'm not looking to do the
I'm not looking to do the same thing however.. don't know if thats exactly possible.
_
You don't say if you're using core upload or filefields, but you can do this with permissions. For example, if using core upload, keep attachments enabled and just don't give out the 'upload files' permission.
I was using core uploads. I
I was using core uploads. I couldn't change the permissions because I still wanted some content types to use it, but not others. I ended up doing what you suggested and creating a filefields for the content types that I wanted to still allow uploads. Thanks for the reply.
Now another problem arose with that solution. The users still want to be able to delete the existing file attachments but not be able to add new ones. Taking away the permissions takes away their ability to delete as well. Any ideas for this one?
_
hmm... maybe do something with flag (flag for deletion) and then either create a hook_cron function or use rules to setup a periodic cron that deleted attachments from flagged nodes. Or maybe just do something simple like leave the permission to edit intact and hide the 'add another item' button.
Yeah, I guess I could use css
Yeah, I guess I could use css to hide it. Thanks again!