I'm trying to create a site to facilitate communication between teachers/staff and parents at my children's elementary/middle school. What I need to do is create essentially a unique group for each teacher to post class assignments, events, announcements, etc. The parents can subscribe to these moderated groups. Only the teachers can post nodes, and ideally, only in their own groups.
Let's say I create a group, the Principal's Corner, and list the principal as the author. Then I create another group called Preschool, and list the preschool director as the author. If each is assigned the role of instructor, and the permissions for instructor are set to create assignment and edit own assignment, does this mean that the preschool director can create assignments in the Principal's Corner, and vice versa? Shouldn't they be restricted to their own group, even though they are each subscribed to both groups?
OK, assuming they aren't restricted as I'd like, I think I can work around this. The target audience (group) is set when the create node is clicked on from the Group Details box, right? So I set the Organic Group node authoring config to be only in target group, and then I limit the Group Details block to only show on the group pages where they are set as the admin. Should work, shouldn't it? Does anyone know what that PHP code would be that would return true, for the Block page visibility settings? User = admin of current group.
Next question - do I have to create another group called "All School" and subscribe everyone to it, in order to share information with every authenticated user, or is there some better way to do this that I'm missing?
Any feedback would be appreciated.
~cindyr
Comments
WRT the 1st question, this
WRT the 1st question, this is only an issue if you want the assignments to be private within groups; ie, you need to be a group member to see assignments. If the group manager makes assignments publicly visible, then instructors would not need to become members of other instructor's groups.
If, however, you are having assignments be private, then you are correct -- any instructor would be able to create assignments in any group in which they are a member.
RE all school: No. Just exempt one content type from OG access control (at the OG admin screen). Give that content type its own vocabulary, and you will have your publicly accessible content without subscribing all site members to one group.
Cheers,
Bill
FunnyMonkey
Tools for Teachers
FunnyMonkey
Thanks
It looks like OG User Roles will do what I need for assigning different roles in different groups.
Re all school: If I exempt one content type, then my problem is that it's public. I need a type that is accessible by everyone who is logged in regardless of their role, but not by the public. Creating another group and subscribing everyone to it will work, it's just a little more hassle. This is a small closed community though (~200 members), so it's feasible.
Thanks for your help,
cindyr
OG Mandatory Group?
If I understand correctly, everyone who can log in should have access to this special content - but not anonymous users ("public").
I would recommend OG Mandatory Group - I think that's the name of the module. You can assign a group that is mandatory for all authenticated users - it even auto-enrolls new registered users, so you don't have to add people to it when new users join.
The Smoking Goat aka Greg Beuthin
http://www.commerceguys.com
RE: OG Mandatory Group
Hmmm... this OG Mandatory Group technique looks interesting. Do you have to do this if you use OG on your site? Does this replace the basic anonymous/authenticated user techniques? Or are the use cases for OG Mandatory Group different than for a basic authenticated user?
Thanks,
Rich Trevor
RE: OG Mandatory Group
OGMG is separate (optional) module you would download; OG is required for it to work. It's here http://drupal.org/project/og_mandatory_group
With OGMG, you select one (and only one) of your pre-existing groups to be mandatory. This mandatory acts as a regular OG, so no, it does not replace the anon/authenticated techniques. That means permissions that are handled by access control are still handled there; and OG-wide settings are all still applicable to this mandatory group. However, if you have a private OG that is mandatory, you will de-facto have a private group that all authenticated users can see.
HTH
The Smoking Goat aka Greg Beuthin
http://www.commerceguys.com
Thanks!
Thanks! That's what I needed.