[Drupal 7] How can we install Organic Group and implement the same with content type in Drupal 7?

| | 2 min read

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.

  1. Organic Groups modules
  2. Entity API
  3. Entity reference
  4. CTools
  5. 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

  1. Navigate to Structure > Content Types > Add Content Types
  2. Add the name for group type and other data.
  3. Select the Group checkbox under Organic Groups tab
  4. Click Save Content Type
  5. Navigate to Configuration > Organic Groups > Organic groups field settings for adding extra fields for the created group type. (Optional)
  6. By navigating to Configure > OG Groups > OG roles overview, we can manage the roles of the created group type.
  7. 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.

  1. Navigate to Structure > Content Types > Add Content Types
  2. Add the name for group content type and other data.
  3. Select the Group content check-box under Organic Groups tab.
  4. Click Save Content Type

Creating a Group.

  1. Creating a group is same as creating a node.
  2. Navigate to Content > Add Content > 'Group Name'
  3. Enter necessary data and click save.
  4. 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

  1. Navigate to Content > Add Content > 'Group Content Name'.
  2. Enter the title for the content
  3. Select the group audiences. (The group to which this content belongs to).
  4. Enter the body.
  5. Click Save.

Please feel free to share your thoughts and queries regarding this here.