Organic Groups

From Stadm
Revision as of 11:02, 12 March 2013 by Zack (talk | contribs) (Created page with '==Setting Up Organic Groups== *Enable Organic Groups, Organic Groups Access Control, Organic Groups field access and Organic Groups UI *Create new content type called Groups and …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Setting Up Organic Groups

  • Enable Organic Groups, Organic Groups Access Control, Organic Groups field access and Organic Groups UI
  • Create new content type called Groups and in the "Group" tab, click the option "Group Type" under "Group"
  • Save the group
  • Go to Configuration->Organic groups->Organic groups field settings
    • Select Group under Bundle, Group visibility under Field and then click Add Field
    • Select User under Bundle and Group Audience under Fields.
  • Set up a group using the content type you just created.
    • Select private under visibility.

Content Types

  • You can create a field for linking a node to the new group on a content type by going to the content type configuration and choosing group content type under the Group tab.
  • Go back to the Organic groups fields settings and for the bundle Node->(content type), choose the field "Group content visibility."

Views

  • Note: This requres og_views module, which is not yet stable for Drupal 7.
  • To set up a view that displays all nodes of a group, go to Organic groups fields settings
  • Add "Group Views" to the Group bundle.
  • Return to Group content type settings and under Manage fields, next to the og_views field, click edit
    • Select og_nodes(Default) under Default Values.
  • Under Manage Display, choose Group Views as Format for Group Views field.
  • If you created your group before this step, go to the group you wish to add group views to and select og_nodes(Default)

Removing Groups

  • In addition to removing the group and all nodes associated, to completely remove a group you must remove it from the 'og' table from in the Drupal database using drush.