Hi!
Here is a little problem I have:
I want the Blog additions to include the "Attach file" option only if the user is part of a specified role. I don't want regular registered users to be able to attach files, but I want to allow users part of the "Editors" role to be able to attach.
I thought I would make this work by adding a content-type like "editors_blog", and then make a menu item for a view page (View module) which displays the "editors_blog"'s contents. But I can't make this work per user; ie. now I can get all of the entries in the "editors_blog" content-type, but can not make this work like the original Blog module, which groups the Blog entries by usernames.
If anyone knows a solution for this, please share it with me :)
Thanks!
Daniel
Do you want only the editors to view their own blogs? To limit who can attach files, can't you just turn the permissions on/off for the Upload Module under User Mangement/Access Control, and then view the blogs the same way as other blog entries?
I am not sure why you would need a custom content type just to restrict attachments. Am I missing something?
Jean Gazis
On 4/10/07, Daniel leva@az.isten.hu wrote:
Hi!
Here is a little problem I have:
I want the Blog additions to include the "Attach file" option only if the user is part of a specified role. I don't want regular registered users to be able to attach files, but I want to allow users part of the "Editors" role to be able to attach.
I thought I would make this work by adding a content-type like "editors_blog", and then make a menu item for a view page (View module) which displays the "editors_blog"'s contents. But I can't make this work per user; ie. now I can get all of the entries in the "editors_blog" content-type, but can not make this work like the original Blog module, which groups the Blog entries by usernames.
If anyone knows a solution for this, please share it with me :)
Thanks!
Daniel
[ Drupal support list | http://lists.drupal.org/ ]
2007. April 11. 20:23, Jean Gazis:
Do you want only the editors to view their own blogs? To limit who can attach files, can't you just turn the permissions on/off for the Upload Module under User Mangement/Access Control, and then view the blogs the same way as other blog entries?
I am not sure why you would need a custom content type just to restrict attachments. Am I missing something?
Jean Gazis
The thing is, that I would like to allow registered users to be able upload files to the forums, but not to their blogs. So if I disable the upload right in the Upload modul for registered users, they won't be able to upload files to the forums. In the other way, if I enable it, then registered users would be able to upload files to the forums and to their blogs too. But I only want one particular role to be able to upload files to their blogs, and every registered users to upload to the forums. Hope this makes it clear. Any help will be appreciated!
Thanks!
Daniel
On 4/10/07, Daniel leva@az.isten.hu wrote:
Hi!
Here is a little problem I have:
I want the Blog additions to include the "Attach file" option only if the user is part of a specified role. I don't want regular registered users to be able to attach files, but I want to allow users part of the "Editors" role to be able to attach.
I thought I would make this work by adding a content-type like "editors_blog", and then make a menu item for a view page (View module) which displays the "editors_blog"'s contents. But I can't make this work per user; ie. now I can get all of the entries in the "editors_blog" content-type, but can not make this work like the original Blog module, which groups the Blog entries by usernames.
If anyone knows a solution for this, please share it with me :)
The closest thing that you can do is to turn off the upload attachments for the content type, but this of course affects all users (not just registered).
Would that work for you?
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Daniel Sent: Friday, April 13, 2007 7:41 AM To: support@drupal.org Subject: Re: [support] help needed in configuring Blog or View module
2007. April 11. 20:23, Jean Gazis:
Do you want only the editors to view their own blogs? To limit who can
attach files, can't you just turn the permissions on/off for the Upload Module under User Mangement/Access Control, and then view the blogs the same way as other blog entries?
I am not sure why you would need a custom content type just to restrict attachments. Am I missing something?
Jean Gazis
The thing is, that I would like to allow registered users to be able upload files to the forums, but not to their blogs. So if I disable the upload right in the Upload modul for registered users, they won't be able to upload files to the forums. In the other way, if I enable it, then registered users would be able to upload files to the forums and to their blogs too. But I only want one particular role to be able to upload files to their blogs, and every registered users to upload to the forums. Hope this makes it clear. Any help will be appreciated!
Thanks!
Daniel
On 4/10/07, Daniel leva@az.isten.hu wrote:
Hi!
Here is a little problem I have:
I want the Blog additions to include the "Attach file" option only if the user is part of a specified role. I don't want regular registered users to be able to attach files, but I want to allow users part of the "Editors" role to be able to attach.
I thought I would make this work by adding a content-type like "editors_blog", and then make a menu item for a view page (View module) which displays the "editors_blog"'s contents. But I can't make this work per user; ie. now I can get all of the entries in the
"editors_blog" content-type, but can not make this work like the original Blog module, which groups the Blog entries by usernames.
If anyone knows a solution for this, please share it with me :)
-- [ Drupal support list | http://lists.drupal.org/ ]
2007. April 13. 17:03, Metzler, David:
The closest thing that you can do is to turn off the upload attachments for the content type, but this of course affects all users (not just registered).
Would that work for you?
No, because the "site editor" role must be able to upload files to their blogs. Here is the deal:
Role: site editors | registered | anonymous blog upload yes no no forum upload yes yes no
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Daniel Sent: Friday, April 13, 2007 7:41 AM To: support@drupal.org Subject: Re: [support] help needed in configuring Blog or View module
- April 11. 20:23, Jean Gazis:
Do you want only the editors to view their own blogs? To limit who can
attach files, can't you just turn the permissions on/off for the Upload Module under User Mangement/Access Control, and then view the blogs the same way as other blog entries?
I am not sure why you would need a custom content type just to restrict attachments. Am I missing something?
Jean Gazis
The thing is, that I would like to allow registered users to be able upload files to the forums, but not to their blogs. So if I disable the upload right in the Upload modul for registered users, they won't be able to upload files to the forums. In the other way, if I enable it, then registered users would be able to upload files to the forums and to their blogs too. But I only want one particular role to be able to upload files to their blogs, and every registered users to upload to the forums. Hope this makes it clear. Any help will be appreciated!
Thanks!
Daniel
On 4/10/07, Daniel leva@az.isten.hu wrote:
Hi!
Here is a little problem I have:
I want the Blog additions to include the "Attach file" option only if the user is part of a specified role. I don't want regular registered users to be able to attach files, but I want to allow users part of the "Editors" role to be able to attach.
I thought I would make this work by adding a content-type like "editors_blog", and then make a menu item for a view page (View module) which displays the "editors_blog"'s contents. But I can't make this work per user; ie. now I can get all of the entries in the
"editors_blog" content-type, but can not make this work like the original Blog module, which groups the Blog entries by usernames.
If anyone knows a solution for this, please share it with me :)
-- [ Drupal support list | http://lists.drupal.org/ ]
Daniel wrote:
I thought I would make this work by adding a content-type like "editors_blog", and then make a menu item for a view page (View module) which displays the "editors_blog"'s contents. But I can't make this work per user; ie. now I can get all of the entries in the "editors_blog" content-type, but can not make this work like the original Blog module, which groups the Blog entries by usernames.
If anyone knows a solution for this, please share it with me :)
You need to implement hook_form_alter() and alter the node_edit form -- if the node type is not what you want, you need to remove the upload form. This isn't the easiest thing in the world to accomplish, but I don't have the time right now to really dig into it to show you what you need to do.