When creating a group you can decide whether the group is Private or Public. Public groups are viewable by everyone while Private groups require membership.
To enable this feature you will need to enable the included "Organic groups field access" module.
For the example below the Group Content Type will be named "Group Content", while the group itself will be called "Group".
Go to Configuration > Organic groups field settings (admin/config/group/fields).
- Select your "Group" type in the "Bundles" dropdown. Add the "Group visibility" field.
- Select your "Group content" type in the "Bundles" dropdown. Add the "Group content visibility" field.
While creating your "Group", you may add the field "group_access". If you have already created the group simply goto Structure-> Content Types -> Group
- Add Existing Field "Group Visibility".
- Select "group_access" as "Fields to Share".
- Leave "Check boxes/radio buttons".
Videos:
- There is a screencast series by bjlewis2 that demonstrates everything in this guide, with a few additions.
Comments
Enabling Fields
You must enable the module Organic Groups Access and then enable the field "group_access" through the Configuration > Organic Groups > Organic Groups Field Settings admin page before this field will appear as an existing field. You may also enable other fields related to privacy on the Field Settings admin page.
I cannot find the
I cannot find the "group_access" field under Configuration>Organic Groups>Organic Groups Field Settings admin page.
I have already installed the Organic group Field Access and the Organic group Access control.
Do I am missing something?
Thanks
I think that field is
I think that field is labelled Group visibility (whose machine name is group_access)
Selection rule for Panels based on privacy?
I've used Panels to override the node template, and set up two variants for group nodes:
But I don't see any way to create a selection rule that determines whether a group is private. Any ideas?
---
Tom Geller * tomgeller.com * Oberlin, Ohio
See my lynda.com videos about Drupal
Private group access
Hi,
I ran into the similar issue, just wanted to know if you have figured out the solution.
Found no group visibility params in the selection rules, have you continued with creating panel nodes or is there any other alternative?
Nope, haven't figured it out
Hi, @druser01. I moved on to another project, and don't believe I ever figured out this puzzle. Good luck!
---
Tom Geller * tomgeller.com * Oberlin, Ohio
See my lynda.com videos about Drupal
7.x.1.x
This is for the old 7.x.1 branch not the current 7.x.2 branch!
If you are working on 7.x.1 I HIGHLY recommend the video.
Working on 7.x.1
MGParisi,
I watched the screen cast but that havent solved my issues
If the group is private, the group is never visible to a regular user, so my question is how do the user know that the group exists and he can request access to join and contribute to that group.
I am not sure if that is a limitation or its designed to work only if the group owner himself add the members to the group.
Any insight is appreciated, Thanks!!