
[UPDATE] We now have a detailed video class covering all the important aspects of using Organic Groups. Organic Groups (OG) is the social networking solution for Drupal. It forms the basis of http://groups.drupal.org and also powers Drupal Commons, the widely used social networking distribution. OG allows users to create and manage their own groups. Other members can then join those groups and share content either privately or publicly. Two notes of caution before we start:
Here's an introduction to OG for Drupal 7. Click here for our tutorial on Organic Groups for Drupal 6. Step 1: Install the Modules![]() You'll need to download and install these four modules:
Organic Groups won't work without those modules, but to make use of OG you'll certainly need these modules too: When you visit the modules page to enable modules, make sure to enable all of the Organic group submodules. After enabling the modules, you'll see a message saying "The content access permissions need to be rebuilt." Click "Rebuild permissions" and follow through the steps until the process is finished. ![]() Step 2: Creating the ContentHere's the key thing to understand about Organic Groups: they are entirely based on Drupal's nodes. The groups themselves are nodes and the content shared inside the groups are nodes. When you set up a new content type, you can decide whether nodes in that content type become groups or content within groups. In this example we're going to build a social networking site for a school. We're going to allow parents and helpers to organize into groups.
![]()
![]()
![]()
![]()
![]() Now let's create some content for our groups.
![]()
![]()
![]()
![]() Step 3: ViewsCurrently we have no real information or layout for any of our group pages. We need to use Views and then Panels before our social networking site will take shape. Go to Structure > Views and you'll see that four different views are already in place. These views will form the building blocks of your group pages.
![]()
![]() Step 4: PanelsNow that we have our content and views, we can put them together using Panels.
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]() What's Next?From this point onwards, there is still a lot of work to do in order to create a social site, but hopefully the principles are now clear. The process of getting OG setup is Content > Views > Panels. |

All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:
Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.
Copyright 2013 Open Source Training, LLC. All rights reserved.
Comments
I'm trying to understand why, or if, panels is required with OG. Most introductory example tutorials for OG use panels. Is it necessary?
Yes, it's essential. Without Panels (or a similar solution) you wouldn't have any sort of a layout for the groups pages.
We've just released a whole videos series on Organic Groups with a lot of detail on permissions. I hope that would help: www.ostraining.com/.../view
Thanks
No, not all. DS would be fine.
Our main Drupal teacher is a huge DS fan. Notice that we've got a Display Suite class but not a Panels class ;) www.ostraining.com/.../view
My drupal is 6.22, I want create private group to member.
If I set the group to public , each member can see the page.
But I set the group to private, all member cannot see the page.
And the error message is
Access denied
You are not authorized to access this page
Is I miss some permission setting?
Best Regard
Kitty