Setting up Drupal Organic Groups

Tagged:  

There is a presentation online, Intro to Organic Groups, that has some useful information but the nature of the presentation might not be enough to help you install and configure organic groups. Given how long it took me to find the answers to my questions, I thought I would share what I learned and did to set up this site.

Enable Modules

The instructions say "Enable the Organic groups and Organic groups Views integration modules. If you want to protect some posts so that only certain users may view them [and enable wiki style content type], enable the Organic Groups access control module as well. Please make sure OG is working well on its own before enabling other OG related modules."

What these instructions don't mention, however, is that Organic Groups comes with the following modules:

  • Organic groups
  • Organic groups views integration
  • Organic groups access control
  • Organic groups actions
  • Organic groups notifications
  • Organic groups panels (not yet available for D6)

One other important point is that you need to have the Views modules installed. So if you don't have Views modules installed, please install it.

During the installation process, I got a message that I needed to rebuild my content access permissions and was given a link to do so. Note: When I tried to rebuild, I got an error. The result was a 403 error that required me to make .htaccess edits. For more information on this issue, see issue 432938 and follow the instructions if you have this problem.

Set Up Content Types

After you get the right modules installed, you need to set up a group node and group post. Go to admin > content management > content types and create two content types.

Group node

If you are used to thinking of nodes as single pages, this concept might make you pause just for a second. The group node is a content type and is one "page" but it is actually a page that gets turned into the "set up the organic group" page once the configuration is done. You can think of the group node as the front door to your group's pages. It is the form you fill out to create a group. Follow the steps below.

  1. Click Add Content Type. In the type field, type group. In the name field, put whatever you want. Since this is the node that sets up your group, consider using "Set Up Group" or something similar.
  2. Click on Submission form settings: Since this is going to be the node used to set up your group, consider using "Group name" for the title label and "Welcome message" for the body label.
  3. Click on Workflow settings: Disable attachments.
  4. Click on Organic Groups: Select the Group node option.
  5. Click on Comment settings: Disable comments.

According to the instructions "since all nodes of this type are treated as groups, you will usually not want to designate the standard page, story, or book node types as groups."

Group post

This is the node or content type that the members of your group will use to post content. By default, the "out of the box" content types that you may have turned on in your site are set to "May not be posted into a group." You can choose to use the existing content types as your group posts or you can create a content type specifically for your groups. If you intend on having content on your site that is not part of your groups, consider making at least one content type just for your group are and leave the default types for use elsewhere in your site. Group content types can have attachments and comments enabled.

  1. Click Add Content Type. In this case, the name and type fields can be whatever you want. Just follow the on screen guidelines on the content type form regarding formatting.
  2. Click on Submission form settings: The default is fine unless you want it to be something else.
  3. Click on Workflow settings: Attachments are fine if you want to allow your group members to upload files to your site.
  4. Click on Organic Groups: Select either "Standard group post" or "Wiki group post." If you want the group to have author-oriented posts and collaboration-type posts, make a content type for each and name them accordingly. Note: the wiki option did not become available until after I enabled the Organic Groups access control module and rebuilt my permissions (per instructions on the screen.
  5. Click on Comment settings: You need to leave this enabled if you want the group members to be able to comment on group posts.

Configure the Organic Groups Module

In the admin section, locate Organic Groups. If you have done as suggested in the first step, you should have two options: Organic Groups Configuration and Organic Groups Access Configuration.

Content Types - Your first option is content types. If you followed the steps above, this part is done. Click on the Content Types link and look at the settings. You will see that if you click edit next to one of the nodes you set up, that link sends you back to the 'add content type' form.

Group Details - There are five settings that you can configure. The explanations of each option are explained on the screen.

  • Groups directory control
  • Registration form control
  • Audience required
  • Group homepage view

Messaging and Notifications - This is just what is says. It is where you configure how you want your email messages to be configured.

Activate Blocks

With the exception of the 'set up group' content type, your group access is via blocks. Go to admin> site building> blocks and view the available blocks. One block is typically available out side of a group.

  • New Groups - Just as it sounds, a list of the groups you have created recently. I don't know yet how many will show.

This block becomes available once you are logged into the site

  • My Groups - If you are logged in, you will see this block and it tells you what the groups you belong to.

Once you are logged in and have enter the group area, these blocks become active.

  • Group Details - Group details holds the links for group members to create a group post, invite a friend, manage your membership, see the number of members, and see who is designated group manager. Your members will need this in order to do anything in the group.
  • Group Search - This is specific to the group and not the entire group site. If you want a site search, use Drupal's core search function.
  • Group notifications - This enables the group feed options and is active once you enter the group.
  • Group admins - This provides the same information as in Group Details.
  • Group members - If there are members other than yourself (the site admin), this block will be available.
  • Group files - If there are group files, this is available.

Setup Organic Group Access Configuration

There are two settings: visibility of posts and private groups. The information available on this page makes it self-explanatory.

Permissions

OG does not set up any special user roles. There is one permission setting entitled "administer organic groups."

Conclusion

For a list of OG contributed modules, visit. Organic Groups modules in the DO site. Check out the OG Handbook as well. This is not the end of Organic Groups for me, but only the beginning. I hope to be able to share additional learning as I move forward.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

i am using four-seasons.... i want to write a separate tpl file for group alone.... how to write and where to include??? can u help me out by giving step by step instructions or a sample code....

Thanks in advance....

tpl files are not my specialty. sorry.

Thanks for a nice post - looking forward to apply it all.

Looking at your post date, it seems you assume Drupal 6 and a certain version of the OG module. Would you meniton it explicitly?

D6 and OG 6.x-1.3. However, I believe these steps will work in any instance of D6 and the OG 6.x.

Thanks for a nice post - looking forward to apply it all.

Groups is a great way to keep information and knowledge organized. Your article was very intuitive. Thanks.

I set OG so that the admin has to approve members of the OG. I then logged out and created a new user, who requested membership in a group. I have found no page, link, menu item or other way for the admin to approve membership. Any ideas on where this is done?????????

log in as the admin. go into the group and on the block that has the links to create content you will see a members link. click on that and you will see requests and the option to approve.

I am not following the hype surrounding Drupal, so its hot and new, maybe I am jsut not one for change, I really don't like learning new systems, platforms etc, maybe I am in the wrong line of work!!

Hi there,
First this is a great tutorial on how to setup OG. I am able to setup OG. The only problem i run into is my groups are moderated group. Now how do i accept the group membership requests.
Can any one help me out on this.

log in as the admin. go into the group and on the block that has the links to create content you will see a members link. click on that and you will see requests and the option to approve.

"Go into the group." Can you elaborate? My "group" is basically a page that can be displayed. There is no "members" tab.

It's set to let people join when they register on my web site. No approval required.

What next? How can I see the membership list?

When you turned on the Group details block, you turned on a link to the member list. Click on the group name (probably listed in your "new groups" block) and the group details block should appear. In the group details block is a link to members. You can also turn on the group members block and it will show the most recent members.

Best tips and directions I have seen. Thank you for this!

Really helpful, thank-you. I always find these open source CMS so hard to 'get into' because of a sea of impenetrable developer gobbledegook. This however was v.helpful! :o)

Seems a little complicated, but i will try it, following your instructions this must work.

Thanks for this nice tuto...

Thanks for the instructions. It helped me solve a problem today.

Thanks for the instructions. It helped me solve a problem today.

this tutorial really makes life easier. the views module really makes all the difference. thanks!

Thanks for the great tips!

Excellent tuto, a couple of images could help me a lot, im not a very experimented user, but i will try my best for mak it work with your instructions.

Thanks a lot.
bono lucky ace poker

I must thank you for this blog. really good information provided.

Jen x

tony g poker

Thanks a lot for this useful post, the info is pretty good and the desciption very adecuate. Keep the good work.

tony g poker

Thanks a lot for this useful post, the info is pretty good and the desciption very adecuate. Keep the good work.

Love the post thank you for the share!

Thank you so much for being helpful.

Thanks, this post is realy useful. Took me a while to configure it correctly but it worked like a charm.

Mike

I have heard about the popularity of Drupal a lot but still I am a newbie in terms of installing blogging platforms or content management platform but Drupal's Organic Groups module seems cool and allows to divide it nicely so people can keep track of only that group if interested.

Drupal's features as overall power-house in terms of content management is what sets it apart from other blogs like WordPress.

Ryan Mathys
Ocean Beach real estate

I will try setting up the organic groups, hopefully it will work out..thanks!

Thanks again.
Medical Job Australia

Thanks for all this info I really needed this..

jill xx
http://www.firstbathrooms.co.uk

this is just a really really good read!! thanks!

Wow! What a great article, I really enjoyed reading it and I love all of the help it was to me.

This blog is brilliant, I really enjoyed reading your detailed explanation on this subject. I don't fully agree with it but its good to see so many people commenting on it.

I will link your page from mine.

Excellent tutorial, i will follow your instructions best i can whising the same result for me.
Poker Online

I'm in the middle of launching my community website with the "community" aspect of it being driven by organic groups. Out of the box, drupal comes with a couple of types of content - pages and stories. Then you might add forums and blog (it seems to be a best practice to have a site development blog) and you have 4 different content types that could be used in organic groups.

Great blog thanks!

Clear and to the point. Thanks!

I have had very little luck finding actually explicit instructions on setting up Organic Groups, so I was very pleased to come across this page.

Except, you list "Audience required" twice and omit the part of the configuration that is giving me an enormous amount of trouble.

What is a group home page? How does one create it? What is the "Group home page view:"? When do I make that? What kind of view is it? Do I need one?

Everything written just seems to assume that it exists, but it does not automatically exist, one is supposed to create it somehow, but never anywhere does it say how. It makes me crazy.

hhhmm, how could I miss that duplication - very strange. I will work on that. Meanwhile, to answer your questions.
1. What is a group home page? The page that gets created when you create the group is the group homepage. It is created via default OG view (see Views Module) that shows the description of the group and the nodes associated with the group.

2. How does one create it? My understanding is you can create another View and use it as your home page as long as the view name begins with og_ghp_.

3. What is the "Group home page view:"? Views are SQL queries on the database generated by the Views Module. The Views GUI allows you to create queries and present them as web pages. -- very cool. Lullabot.com has as a video tutorial that explains it all. If you are not familiar with creating SQL queries by hand, the concept might jump out at you at first. I recommend the video.

4. When do I make that? You don't have to make it. You can use the default if you want.

5. What kind of view is it? Again, see the Views Module. You will see the default view in there. You can clone the default view and edit it into something else if you want. Do not mess with the default view. You want to ensure that you always have a functioning view to return to if there is a problem.

6. Do I need one? No. Just use the default if you want.

Thanks so much for all this great information! It is very appreciated and will be used.

Thank you so much for documenting this. I have poured over all of the written and video documentation I could find about OG and still did not understand how to get started. This really helps!

Thanks so much for all this great information. It helped me solve a problem today.

Thanks so much for all this great information! It is very appreciated and will be used.

commercial collection agency

Thank you so much for documenting this.

debt recovery

I don't want users to create community on themselve. Is it possible through organic group

you can restrict who gets to create groups on your site using permissions. Just don't give your authenticated user permission to create a group node.

You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and very broad for me. I am looking forward for your next post, I will try to get the hang of it! As a rule I download everything I need (all the books, articles and tutorials) by http://www.picktorrent.com but I'm really glad to find your site. keep up the good work!

Re

Good enough text just about this good post ! Students will see essay writing service to buy essays, also students select essay writing.

Thanks for this post

Post new comment

The content of this field is kept private and will not be shown publicly.
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated.