An Introduction to Organic Groups with Drupal 7

Video loading...

  • 0:00
    [] [Learn Drupal]
  • 0:05
    [♪ Music ♪]
  • 0:07
    [An Introduction to Organic Groups] [Organic Groups with Drupal 7]
  • 0:10
    [Chapter 1 with Joe Shindelar]
  • 0:12
    In this series, Karen Stevenson, Michelle Lauer and myself,
  • 0:16
    Joe Shindelar, are going to give you a demonstration
  • 0:19
    of the Organic Groups module for Drupal 7.
  • 0:22
    Organic Groups is a module that lets users and administrators
  • 0:25
    of your site create new groups and then place content into those groups.
  • 0:31
    An example of something like Organic Groups that you're probably familiar with
  • 0:34
  • 0:36
    If you think about, when you create a user
  • 0:39
    on the site you can then create a new meetup.
  • 0:42
    And a meetup is really a collection of content like an event
  • 0:45
    or announcements for the meetup and members,
  • 0:48
    people that have subscribed to that meetup and said
  • 0:50
    "I'd like to come to this and be notified when there's a new event posted."
  • 0:54
    This is a good example of something you might build with Organic Groups.
  • 0:58
    Another example that you might already be familiar with
  • 1:01
    is which uses the Organic Groups module.
  • 1:05
    As a member of I can create
  • 1:08
    a new Twin Cities group.
  • 1:10
    Other users of the site can find that group
  • 1:13
    and request membership in the group.
  • 1:16
    Once they have membership in the group, they've got one place
  • 1:18
    that they can go and get all of the content that's related to the Twin Cities.
  • 1:22
    It makes it easy for them to find the things that they're looking for
  • 1:26
    and group things together.
  • 1:28
    I've also seen the Organic Groups module used
  • 1:31
    on a site like a newspaper website.
  • 1:35
    If you think about how newspapers work
  • 1:37
    they usually have different sections, like the sports section,
  • 1:40
    the politics section, maybe an arts and entertainment section,
  • 1:43
    and maybe even in a really cool newspaper they've got a Drupal section.
  • 1:48
    Each of those sections is a grouping of articles,
  • 1:52
    so you write a new article, and you place it into the sports section,
  • 1:56
    or in this case the sports group.
  • 1:59
    It's just a way of keeping all the content organized
  • 2:02
    and grouped together logically,
  • 2:05
    but you can take it a little bit further too.
  • 2:07
    Using the Organic Group module I could do something like,
  • 2:11
    say, in the sports section I'd like to have the pages look different.
  • 2:16
    The Organic Groups module lets me do that.
  • 2:18
    It lets me say in this specific context
  • 2:20
    I'd like to use a different theme, so when I'm viewing a page
  • 2:24
    that's in the sports section of my website show it using a different theme,
  • 2:29
    and I could even take it further.
  • 2:31
    Again, using the analogy of a newspaper and the sports section
  • 2:35
    I might have a sports editor.
  • 2:37
    I could make the member on my site who is the sports editor
  • 2:41
    a manager of the sports group or the sports section,
  • 2:44
    and that would give them permission to edit articles
  • 2:46
    that have been added to the sports group,
  • 2:49
    but it would not allow them to edit articles from anywhere else on the site.
  • 2:53
    That way I can lock them down to only being editors
  • 2:56
    listed in that certain section of the site.
  • 3:00
    There's a lot of things that you can do with the Organic Groups module,
  • 3:03
    and it's a pretty flexible system.
  • 3:06
    For demonstration purposes, in this series
  • 3:08
    we're going to build a website for a fictitious recreation center in a small town.
  • 3:14
    The concept is this.
  • 3:16
    We want the recreation center to be able to have a website
  • 3:19
    that all the sports teams can come and learn about
  • 3:22
    their teams and other teams,
  • 3:25
    so in our site each sports team is going to be a group,
  • 3:29
    and then users of the site can sign up for a group to be either a
  • 3:32
    player on a team or the coach of a team.
  • 3:35
    We're going to make it so that coaches of a team can post announcements
  • 3:38
    into their team so that the players can see
  • 3:41
    what's going on with the team.
  • 3:43
    For example, when the next game is.
  • 3:45
    We're also going to take a look at how we can create a group that's private,
  • 3:48
    one that only allows you to sign up if you're invited to the group.
  • 3:54
    Once you've been added to the group you can see the content
  • 3:56
    that is also private to that group.
  • 4:00
    For our use what we're going to do is create a management group,
  • 4:04
    one that the city manager or someone from the recreation center
  • 4:07
    can add all of the coaches to and post announcements to,
  • 4:10
    but those announcements are kept private and only the coaches for the teams can see them.
  • 4:14
    All of the players and regular users of the site won't get to see them.
  • 4:18
    Throughout the course of the series we're going to learn about creating groups,
  • 4:22
    making those groups private and adjusting all of the different settings
  • 4:25
    related to permissions and access control and how we could do so
  • 4:28
    on a site-wide basis or make adjustments so that we can do it
  • 4:32
    on a per group basis.
  • 4:34
    We're also going to learn about creating content and assigning that content
  • 4:36
    to an organic group.
  • 4:38
    Along the way we're going to learn about permissions related to creating content
  • 4:42
    and how we can set it up so that certain members can create content
  • 4:45
    for their group or a group that they belong to but can't affect
  • 4:47
    the content of other groups.
  • 4:50
    We're also going to learn about how to display all of these relationships
  • 4:53
    that the Organic Groups module creates.
  • 4:56
    Organic Groups is all about creating relationships between a piece of content
  • 4:59
    and a user or a piece of content and a group or a user and a group.
  • 5:04
    In order to display all that information we're going to take a look at using
  • 5:07
    the OG Extras module.
  • 5:09
    This will allow us to do things like have a block on a group page
  • 5:11
    that displays all the people that are a member of that group.
  • 5:15
    We'll also be able to use OG Extras in order to display a list of announcements
  • 5:18
    on the bottom of the team page underneath the description of that team.
  • 5:23
    Later in the series we'll take a look at using the Panels module
  • 5:25
    to accomplish the same thing.
  • 5:28
    Organic Groups out of the box has a bunch of views
  • 5:31
    that are preconfigured to work well with Panels,
  • 5:33
    so we'll take a look at how we can do that.
  • 5:35
    We'll also take a look at how we can create some of our own new views
  • 5:39
    using things like context in Organic Groups so that we can
  • 5:42
    create a block that when it's placed on a group page
  • 5:45
    is aware of which group it's being displayed as
  • 5:48
    and can thus only display the content that's relevant to that group
  • 5:52
    respecting all of the access control that we set.
  • 5:56
    We'll also learn about using the Organic Groups Theme module
  • 6:00
    in order to make it so that on a per group basis we can set
  • 6:02
    a specific theme, overriding the defaults and making it look
  • 6:05
    how we want it to for that group.
  • 6:08
    Towards the end of the series Karen is going to demonstrate
  • 6:10
    using the Panelizer module so that we can
  • 6:13
    end up with a system that allows coaches
  • 6:16
    for our groups to have a different layout on a per group basis.
  • 6:21
    There's all kinds of things that you can do with the Organic Groups module,
  • 6:24
    and in this video series we're really only just starting to scratch the surface
  • 6:27
    of what's possible, but we're hoping that you'll pick up some tips along the way
  • 6:31
    and learn about some interesting things you can do with the module
  • 6:34
    and start to get your brain spinning a little bit and figuring out
  • 6:36
    how you might be able to make use of Organic Groups in your next project.

An Introduction to Organic Groups with Drupal 7


In this video series Karen Stevenson, Michelle Lauer and Joe Shindelar take a look at the Organic Groups module for Drupal 7. The series starts from the basics and goes through the various requried modules used to build a site with Organic Groups and then gets in depth with creating groups, adding content to groups, and dealing with group membership. In addition to the basics of creating groups the series also takes a look at the various settings related to both access control and permissions and how you can combine them to create private and public groups. How to use the OG Extras module to display more information on the main group page and then how to use the Panels module to display group content and other advanced Fields and Views configuration related to OG. This video assumes that you understand the basics of content, fields, and Views in Drupal. If you need a refresher on these topics here are some other tutorial series to review:

Note: There have been significant changes to Organic Groups since this lesson was made. We use the 7.x-2.x-dev version from May 2012, or the equivalent of 7.x-2.0-alpha3, in our lessons. Though we would like to revisit this series to update it, we have no current schedule to complete that. The best place to figure out what has changed and why, would be the Organic Groups issue queue on (

Additional resources:
There are no resources for this video, if you believe there should be please contact us.

Average review

No votes yet