[Drupal 7] How can we install Organic Group and implement the same with content type in Drupal 7?
Organic Groups module is a powerful and useful module in Drupal. This module is used to create groups, add members to it, and to share content and comments. OG also has advanced access management through permissions and roles.
The Organic Groups module for Drupal 7 is entirely different from Drupal 6. The following documentation is intended for Organic Groups Version 7.x-2.x.
Get more details on resolved issues related to Drupal module configurations here.
In order to install OG, we need to install and enable the following modules.
- Organic Groups modules
- Entity API
- Entity reference
- CTools
- Views Bulk Operations
Creating a Group Type
After installing the above modules, the next step is to create a group type. For creating a group type
- Navigate to Structure > Content Types > Add Content Types
- Add the name for group type and other data.
- Select the Group checkbox under Organic Groups tab
- Click Save Content Type
- Navigate to Configuration > Organic Groups > Organic groups field settings for adding extra fields for the created group type. (Optional)
- By navigating to Configure > OG Groups > OG roles overview, we can manage the roles of the created group type.
- In Configure > OG Groups > OG permissions overview, we can manage the permissions for the group type.
Creating a Group Content Type
After creating a Group Type, a content type needs to be designated as group content. This can be done either by editing the existing content types like article or by creating a new content type as follows.
- Navigate to Structure > Content Types > Add Content Types
- Add the name for group content type and other data.
- Select the Group content check-box under Organic Groups tab.
- Click Save Content Type
Creating a Group.
- Creating a group is same as creating a node.
- Navigate to Content > Add Content > 'Group Name'
- Enter necessary data and click save.
- In the result view, we can see a Group tab where we can modify permissions, add members and manage members.
Creating a Group Content.
Once a group is created, we have to add contents to that group. For adding contents to a group
- Navigate to Content > Add Content > 'Group Content Name'.
- Enter the title for the content
- Select the group audiences. (The group to which this content belongs to).
- Enter the body.
- Click Save.
Please feel free to share your thoughts and queries regarding this here.