You are here

README.txt in Organic groups 7

DESCRIPTION
--------------------------
The Organic Groups module (also referred to as the 'og' module), provides users
the ability to create, manage, and delete their own 'groups' on a site.
Each group can have members, and maintains a group home page which individual
group members may post into. Posts can be sent to multiple groups (i.e. cross-
posted), and individual posts (referred as 'group content') may be shared with
members, or non-members where necessary.
Group membership can be open, closed or moderated.

TERMS AND DEFINITIONS
------------------------------------
- GROUP: A single node which can have different content types and users
  associated with it.
- GROUP CONTENT: Content such as nodes or users, which are associated with a
  group.
- GROUP ADMIN: Is a privileged user with permission to administer particular
  activities within a group.
- SITE ADMIN: Compared to group admin, a site admin is granted access to all
  groups operating within a site. The site admin can specify the permissions
  group admins are granted in order to control their group related activities,
  while keeping other permissions out of their reach.
- GROUP CONTEXT: Whenever an individual piece of content such as a node or a
  user is viewed, the module attempts to determine if the content is associated
  with a particular group.
  The group context is later on used to determine which access rights the user
  is granted. For example, in a particular group context the user can edit
  nodes, but is only allowed to view the nodes in a different group context.
  The group context can also be used by custom modules to determine different
  behaviors. For example, displaying different blocks on different groups,
  switching to a different theme, etc.
- ENTITY: Nodes, users, and taxonomy terms, are examples of Drupal entities.
  Organic Groups allows each individual Drupal entity type to be associated with
  a group or with a group content. This means that you can associate different
  users (as group content) to a certain user (as a group).

GROUP ARCHITECTURE
--------------------------
At the lowest level the module associates content types with groups. Above this
level is the role and permissions layer, which operates at the group level.
The Organic Groups module leverages Drupal's core functionality, especially the
field API. This means that a content type is associated with a group, by setting
the correct field value.
Users are also allowed to select the groups that will be associated with the
content from a list of groups, which they have authorization to view.
As is the case with Drupal itself, in Organic Groups different permissions can
be assigned to different user roles. This allows group members to perform a
different set of actions, in different group contexts.

INSTALLATION DRUPAL 7.x
--------------------------------------------
Note that the following guide is here to get you started. Names for content
types, groups and group content given here are suggestions and are given to
provide a quick way to get started with Organic groups.

1. Enable the Group and the Group UI modules.
2. Create a new content type via admin/structure/types/add. Call it "Group", and
   define it to be of Group type.
3. Create a second content type. Call it "Group content", and set it to be of
   Group content type.
4. Add a Group by going to node/add/group. Call it First group, and enable the
   Group through the "Group type" field.
5. Add a Group Content by going to node/add/group-content. In the Groups
   audience field, select First group. In the group content view a link was
   added to the group.
6. Click on the Group link. In the group view, a new tab was added labeled
   Group.
7. Click on the Group tab. You will be redirected to the group administration
   area. Note that this is the administration of First group only. It will not
   affect existing or new groups which will be created on the site.
8. You are now presented with different actions you can perform within the
   group. Such as add group members, add roles, and set member permissions. You
   will notice that these options have the same look and feel as Drupal core in
   matters relating to management of roles and permissions.
9. You can enable your privileged users to subscribe to a group by providing a
   'Subscribe' link. (Subscribing is the act of associating a user with a group.)
   To show this subscribe link:
   9.1 Make sure you have the Group UI module enabled
   9.2 Go to admin/config/group/permissions and make sure that the "Subscribe user to group"
       permission is given to the appropriate user-roles.
   9.3 Navigate to the "manage display" tab of your content type
      (admin/structure/types/manage/group/display)
       and choose the Group subscription format for the Group type field.
   9.4 Back in the group view you will now notice a 'Subscribe' link (If you are the
       group administrator it will say "You are the group manager").
10. In order to associate other entities with group or group content, navigate
    to Organic Groups field settings", in admin/config/group/fields.
11. In order to define default permissions for groups that are newly created or
    to edit permissions on all existing groups, navigate to the Group
    default permissions page. Important permissions in this page are the ones
    under the administer section. These permissions are what enable group admins
    to have granular control over their own group. This means, that if you as
    the site admin, don't want to allow group admins to control who can edit
    nodes in their own group, you need to uncheck those permissions.

DEVELOPERS & SITE BUILDERS
----------------------------------------------
- Views integration: There are some default views that ship with the module.
  Follow those views configuration in terms of best practice (e.g. adding a
  relationship to the group-membership entity instead of querying directly the
  group-audience field).
- Token integration: Enable the entity-tokens module that ships with Entity API
  module.
- Rules integration: Organic groups is shipped with a Rules configuration that
  allows simple notification. You can disable it or clone and change its
  behaviour.
- Devel generate integration: Enable devel-generate module to create dummy
  groups and groups content.
- You may craft your own URLs which produce useful behavior. For example,
  node/add/group-content?gids_node[]=4 will add a select the group with node ID
  4, in the node form. The prefixed entity can change to indicate other entity
  types allowing crafting the URL and you can have multiple variables, for
  example, node/add/group-content?gids_node[]=4&gids_user[]=3&gids_group[]=5,6,7
  The above URL will select the group with node ID 4, and the group with user ID
  3, and the groups with the unique group ID 5, 6 and 7.
  Note that the actual entity of group ID 5, 6 and 7 can be any entity (e.g.
  nodes or users).

FAQ
----
Q: How should I update from Drupal 6?
A: Run update.php; Enable the og-migrate module and execute all the migration
   plugins.

Q: How should I update from a previous Drupal 7 release (e.g. 7.x-1.0 to
   7.x-1.1)?
A: Same as updating from Drupal 6 -- Run update.php; If requested enable the
    og-migrate module and execute all the migration plugins.

Q: How do I use OG tokens with pathauto module to craft the url alias.
A: After enabling entity-tokens module you will have some tokens exposes by
   Organic groups. However you are not able to do something like
   [node:og_membership(1):group:label].
   See http://drupal.org/node/1088538#comment-4376910

Q: Must I use Panels module along with Organic groups?
A: No. However note that the maintainer of the module highly recommends using
   it, and considers it as good practice.

CREDITS
----------------------------
- Organic groups for Drupal 5 and 6 authored by Moshe Weitzman -
  <weitzman AT tejasa DOT com>
- Current project maintainer and Drupal 7 author is Amitai Burstein (Amitaibu) -
  gizra.com

File

README.txt
View source
  1. DESCRIPTION
  2. --------------------------
  3. The Organic Groups module (also referred to as the 'og' module), provides users
  4. the ability to create, manage, and delete their own 'groups' on a site.
  5. Each group can have members, and maintains a group home page which individual
  6. group members may post into. Posts can be sent to multiple groups (i.e. cross-
  7. posted), and individual posts (referred as 'group content') may be shared with
  8. members, or non-members where necessary.
  9. Group membership can be open, closed or moderated.
  10. TERMS AND DEFINITIONS
  11. ------------------------------------
  12. - GROUP: A single node which can have different content types and users
  13. associated with it.
  14. - GROUP CONTENT: Content such as nodes or users, which are associated with a
  15. group.
  16. - GROUP ADMIN: Is a privileged user with permission to administer particular
  17. activities within a group.
  18. - SITE ADMIN: Compared to group admin, a site admin is granted access to all
  19. groups operating within a site. The site admin can specify the permissions
  20. group admins are granted in order to control their group related activities,
  21. while keeping other permissions out of their reach.
  22. - GROUP CONTEXT: Whenever an individual piece of content such as a node or a
  23. user is viewed, the module attempts to determine if the content is associated
  24. with a particular group.
  25. The group context is later on used to determine which access rights the user
  26. is granted. For example, in a particular group context the user can edit
  27. nodes, but is only allowed to view the nodes in a different group context.
  28. The group context can also be used by custom modules to determine different
  29. behaviors. For example, displaying different blocks on different groups,
  30. switching to a different theme, etc.
  31. - ENTITY: Nodes, users, and taxonomy terms, are examples of Drupal entities.
  32. Organic Groups allows each individual Drupal entity type to be associated with
  33. a group or with a group content. This means that you can associate different
  34. users (as group content) to a certain user (as a group).
  35. GROUP ARCHITECTURE
  36. --------------------------
  37. At the lowest level the module associates content types with groups. Above this
  38. level is the role and permissions layer, which operates at the group level.
  39. The Organic Groups module leverages Drupal's core functionality, especially the
  40. field API. This means that a content type is associated with a group, by setting
  41. the correct field value.
  42. Users are also allowed to select the groups that will be associated with the
  43. content from a list of groups, which they have authorization to view.
  44. As is the case with Drupal itself, in Organic Groups different permissions can
  45. be assigned to different user roles. This allows group members to perform a
  46. different set of actions, in different group contexts.
  47. INSTALLATION DRUPAL 7.x
  48. --------------------------------------------
  49. Note that the following guide is here to get you started. Names for content
  50. types, groups and group content given here are suggestions and are given to
  51. provide a quick way to get started with Organic groups.
  52. 1. Enable the Group and the Group UI modules.
  53. 2. Create a new content type via admin/structure/types/add. Call it "Group", and
  54. define it to be of Group type.
  55. 3. Create a second content type. Call it "Group content", and set it to be of
  56. Group content type.
  57. 4. Add a Group by going to node/add/group. Call it First group, and enable the
  58. Group through the "Group type" field.
  59. 5. Add a Group Content by going to node/add/group-content. In the Groups
  60. audience field, select First group. In the group content view a link was
  61. added to the group.
  62. 6. Click on the Group link. In the group view, a new tab was added labeled
  63. Group.
  64. 7. Click on the Group tab. You will be redirected to the group administration
  65. area. Note that this is the administration of First group only. It will not
  66. affect existing or new groups which will be created on the site.
  67. 8. You are now presented with different actions you can perform within the
  68. group. Such as add group members, add roles, and set member permissions. You
  69. will notice that these options have the same look and feel as Drupal core in
  70. matters relating to management of roles and permissions.
  71. 9. You can enable your privileged users to subscribe to a group by providing a
  72. 'Subscribe' link. (Subscribing is the act of associating a user with a group.)
  73. To show this subscribe link:
  74. 9.1 Make sure you have the Group UI module enabled
  75. 9.2 Go to admin/config/group/permissions and make sure that the "Subscribe user to group"
  76. permission is given to the appropriate user-roles.
  77. 9.3 Navigate to the "manage display" tab of your content type
  78. (admin/structure/types/manage/group/display)
  79. and choose the Group subscription format for the Group type field.
  80. 9.4 Back in the group view you will now notice a 'Subscribe' link (If you are the
  81. group administrator it will say "You are the group manager").
  82. 10. In order to associate other entities with group or group content, navigate
  83. to Organic Groups field settings", in admin/config/group/fields.
  84. 11. In order to define default permissions for groups that are newly created or
  85. to edit permissions on all existing groups, navigate to the Group
  86. default permissions page. Important permissions in this page are the ones
  87. under the administer section. These permissions are what enable group admins
  88. to have granular control over their own group. This means, that if you as
  89. the site admin, don't want to allow group admins to control who can edit
  90. nodes in their own group, you need to uncheck those permissions.
  91. DEVELOPERS & SITE BUILDERS
  92. ----------------------------------------------
  93. - Views integration: There are some default views that ship with the module.
  94. Follow those views configuration in terms of best practice (e.g. adding a
  95. relationship to the group-membership entity instead of querying directly the
  96. group-audience field).
  97. - Token integration: Enable the entity-tokens module that ships with Entity API
  98. module.
  99. - Rules integration: Organic groups is shipped with a Rules configuration that
  100. allows simple notification. You can disable it or clone and change its
  101. behaviour.
  102. - Devel generate integration: Enable devel-generate module to create dummy
  103. groups and groups content.
  104. - You may craft your own URLs which produce useful behavior. For example,
  105. node/add/group-content?gids_node[]=4 will add a select the group with node ID
  106. 4, in the node form. The prefixed entity can change to indicate other entity
  107. types allowing crafting the URL and you can have multiple variables, for
  108. example, node/add/group-content?gids_node[]=4&gids_user[]=3&gids_group[]=5,6,7
  109. The above URL will select the group with node ID 4, and the group with user ID
  110. 3, and the groups with the unique group ID 5, 6 and 7.
  111. Note that the actual entity of group ID 5, 6 and 7 can be any entity (e.g.
  112. nodes or users).
  113. FAQ
  114. ----
  115. Q: How should I update from Drupal 6?
  116. A: Run update.php; Enable the og-migrate module and execute all the migration
  117. plugins.
  118. Q: How should I update from a previous Drupal 7 release (e.g. 7.x-1.0 to
  119. 7.x-1.1)?
  120. A: Same as updating from Drupal 6 -- Run update.php; If requested enable the
  121. og-migrate module and execute all the migration plugins.
  122. Q: How do I use OG tokens with pathauto module to craft the url alias.
  123. A: After enabling entity-tokens module you will have some tokens exposes by
  124. Organic groups. However you are not able to do something like
  125. [node:og_membership(1):group:label].
  126. See http://drupal.org/node/1088538#comment-4376910
  127. Q: Must I use Panels module along with Organic groups?
  128. A: No. However note that the maintainer of the module highly recommends using
  129. it, and considers it as good practice.
  130. CREDITS
  131. ----------------------------
  132. - Organic groups for Drupal 5 and 6 authored by Moshe Weitzman -
  133. - Current project maintainer and Drupal 7 author is Amitai Burstein (Amitaibu) -
  134. gizra.com