Community Documentation

Organic Groups Version 6.x.2.x

Last updated August 24, 2012. Created by bonobo on June 5, 2009.
Edited by junipllc, MGParisi, marcp. Log in to edit this page.

This documentation was put together (a little quickly :) ) for DrupalCamp Wisconsin 2009 Some of this information may be deprecated

Getting Started

Organic Groups depends on Messaging, Notifications and Views.

  • admin/build/modules -- enable:
    • OG, OG Access Control, OG Actions, OG Groups Notifications, OG Views Integration
    • Messaging, Simple Mail, Simple messaging
    • Content notifications, Notifications, Notifications lite, Notifications views
    • Views, Views UI
  • Configure OG
    • admin/og/og
    • admin/og/og_access
  • Create a group type
  • Create at least one content type that can be posted in a group

Enabling OG Blocks

  • admin/build/block
    • Enable Group details, My Groups, and Group search

Create a New Home Page View

OG Home pages are generated by views.

  • Any view that begins with og_ghp can be selected as a group home page at admin/og/og in the Group details fieldset
  • The default group home page is at admin/build/views/edit/og_ghp_ron
    • NEVER edit the default views. Clone them!
  • The default og_ghp_ron view can be cloned at admin/build/views/clone/og_ghp_ron

Next Steps

  • Hide blocks when viewing a node that is connected to a group

    This PHP snippet, when placed in a block's page specific visibility settings, will display a block only on pages that are not connected with a group:

    <?php
      $group_node
    = og_get_group_context();
      return (empty(
    $group_node));
    ?>
  • Create additional views for the group homepage
    • Views Arguments are your friend

Page status

Needs updating

Log in to edit this page

About this page

Drupal version
Drupal 6.x
Audience
Site users
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here