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