In this video we will allow a group to have permissions that are different from all other groups on the site.
Before we begin, I’m going to set the “Basic Page” content type to be a group content. I have shown you two ways to do this for the “Article” content type in the videos “Organic Groups Setup” and “Creating Private Groups”. You can follow those steps to do the same thing for the “Basic Page” content type.
Configure group specific permissions
- Click "Group #2 (Private)"
- Click "Group" tab
- Click "Permissions" link (Here we can see the "Page Manager" role we created in the last video)
- Select the following permissions for "Page Manager":
- Create Basic page content
- Edit own Basic page content
- Edit any Basic page content
- Delete own Basic page content
- Delete any Basic page content
- (Save Permissions)
Now that we have given permissions to the "Page Manager" roles, we need a user with this role. So let's add Chelsea to Group #2 and give her the "Page Manager" role.
- Click "Group" tab
- Click "Add people" link
- User name: Chelsea
- Roles: Select "Page Manager"
- (Add users)
Now, we can create Chelsea's first basic page, let's switch over to Safari and refresh.
- Go to "Group #2 (Private)"
- Click "Basic Page" in the “Content create links” section
- Title: Basic Page #1
- Body: (Lorem Ipsum)
- Groups audience: Group #2 (Private) (You’ll notice that "Group #2 (Private)” is already selected, and the field is disabled. This is because I set the “Groups audience” field to the same settings that we set for the Article content type.)
- (Save)
This technique could be used to create menu items that are only visible to members of specific groups. Chelsea doesn’t have permission to create menu items, but if I switch back to the administrator user and edit the basic page, I can create link for the page. Now, when I switch back to Chelsea, she sees it in the main menu. However, if I log out, it’s not visible to anonymous users or anyone who is not a member of the group.
I’ll log back in as Chelsea, and because she is a “Page Manager”, she can click the "edit" tab to edit the page or, down at the bottom, click the "delete" button to remove the page.
Note: She doesn't have the option to make this page public because we didn't enable that field for the "Basic page" content type and it’s posted to a private group. (This is covered in Video 7 - Advanced Private Groups).