Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
WHO, WHAT, WHERE, WHEN,
WHY… HOW?
A whirlwind tour of OG2!
ABOUT US
Valerie Eades
Programmer Analyst
UBC IT Web Services
dmt.it.ubc.ca

Renée Stephen
CMS Developer & Webmaster
UBC C...
Roadmap
WHY use it?
WHO should use it?
WHAT is it?
HOW does it work?
Examples of WHERE and WHEN
(case studies)
WHY use Organic Groups?
Easy to create complex relationships between
content and entities
Powerful means for users to self...
Roadmap
WHY use it?
WHO should use it?
WHAT is it?
HOW does it work?
Examples of WHERE and WHEN
(case studies)
WHO needs it?
If you:
● need content organization with flexible access
control
● want private discussion or document-shari...
Roadmap
WHY use it?
WHO should use it?
WHAT is it?
HOW does it work?
Examples of WHERE and WHEN
(case studies)
WHAT is Organic Groups (OG)?
It’s a little Drupal site within your Drupal site!
Groups:
● have members, roles, and permiss...
WHAT is Organic Groups (OG)... cont?
● Each group is a collection of stuff + permissions
● Users can subscribe, or be adde...
Another Group

Group

OG relates entities
to parent entities
Members and
content are all
entity references
Roadmap
WHY use it?
WHO should use it?
WHAT is it?
HOW does it work?
Examples of WHERE and WHEN
(case studies)
HOW?
Group entities have attributes:
●
●
●
●

Memberships (fieldable)
State (active / pending / disabled)
Roles
Permission...
HOW?
Two key fields:
Group (int):
is the entity a group?
Group audience (entityreference):
assign this content to groups
P...
OG Field Settings (admin/config/group/fields)
Roadmap
WHY use it?
WHO should use it?
WHAT is it?
HOW does it work?
Examples of WHERE and WHEN
(case studies)
WHERE & WHEN?
Case Study 1: Community sites
Case Study 2: Content organization with baked-in access
control
Case Study 3: ...
Case Study 1: Community sites
● Out of the box, OG is a community site-builder
● OpenAtrium, Commons: powered by OG
Case Study 1: Community sites
● Out of the box, OG is a community site-builder
● OpenAtrium, Commons: powered by OG
● Simp...
Case Study 2: an Intranet
We needed self-organizing working groups,
committees.

Some wanted:
● universal public access
● ...
Classes!
Pros / Cons?
Alternatives? Taxonomy Access Control (TAC),
Content Access, Workbench...
OG lets you:
● Delegate “module-lit...
Integrations
OG LDAP - OG Menu - OG Workflow - Rules Views - Tokens - OG Moderation - Profile2 Panels - Search API - Webfo...
Case Study 3: “Multi-site”
Website for organization with sub-units
Share some structures, content, design

Sub-units:
●
●
...
Case 3: Example

UBC’s office of
the Vice President
Research &
International
(VPRI)
reseach.ubc.ca
ors.ubc.ca

uilo.ubc.ca

sparc.ubc.ca

research.ubc.ca/ore
Case 3: The OG Solution
Create a content type “sub-site” as group type
Create a number of group content types:
“Announceme...
Case 3: Organizing with OG Menus
1. When creating new group content types (e.
g. Page) – check “Enable for OG Menus”
Case 3: Organizing with OG Menus
2. When creating new “sub-site” check
“enable menu for this group”
Case 3: Organizing with OG Menus
Organic Menus have own link under admin>structure
Or can be access by path: admin/structu...
Case 3: Differentiating Sub-sites by Path
Alias
Edit url alias patterns to
include “group” name in
path
Using token:
[node...
Case 3: Theming Subsite
Global Base Theme
common look and feel
Subthemes
for each “sub-site”
Each “sub-site” can apply
the...
Case 3: Applying Theme to Sub-site
Using “ThemeKey” module
(admin/config/user-interface/themekey)

Available
Properties:
G...
Case 3: Adding sub-site domain
Server directives:
1. Create server
alias for
additional
domains
Case 3: Redirect Domain Request to
Sub-site
Server directives:
2. Use rewrite rules to
direct domain to
right content path...
Case 3: Domain Handling for Drupal Path
1. Make sure right path is attached to right domain
Awkward – needs PHP redirect s...
To sum up….
WHY: Flexibility, user control
WHAT: Entities -> entities, roles, permissions
WHO: needs a better wiki, commun...
The End
Shout out to OG’s maintainer Amitai Burstein:
amitaibu
Using Drupal's Organic Groups, an Introduction - PNWDS 2013
Using Drupal's Organic Groups, an Introduction - PNWDS 2013
Using Drupal's Organic Groups, an Introduction - PNWDS 2013
Using Drupal's Organic Groups, an Introduction - PNWDS 2013
Using Drupal's Organic Groups, an Introduction - PNWDS 2013
Using Drupal's Organic Groups, an Introduction - PNWDS 2013
Using Drupal's Organic Groups, an Introduction - PNWDS 2013
Using Drupal's Organic Groups, an Introduction - PNWDS 2013
Using Drupal's Organic Groups, an Introduction - PNWDS 2013
Upcoming SlideShare
Loading in …5
×

Using Drupal's Organic Groups, an Introduction - PNWDS 2013

4,593 views

Published on

Using Drupal's Organic Groups module: who, what, where, why and when? We'll discus potential alternatives and go into a little more depth with 3 case studies. We’ll sort out any of the pain points you have experienced -- and show you new ways to leverage Organic Groups has to offer.

By UBC's Valerie Eades and Renée Stephen

Published in: Technology

Using Drupal's Organic Groups, an Introduction - PNWDS 2013

  1. 1. WHO, WHAT, WHERE, WHEN, WHY… HOW? A whirlwind tour of OG2!
  2. 2. ABOUT US Valerie Eades Programmer Analyst UBC IT Web Services dmt.it.ubc.ca Renée Stephen CMS Developer & Webmaster UBC Computer Science
  3. 3. Roadmap WHY use it? WHO should use it? WHAT is it? HOW does it work? Examples of WHERE and WHEN (case studies)
  4. 4. WHY use Organic Groups? Easy to create complex relationships between content and entities Powerful means for users to self organize around content they care about Flexible user-powered access control Plentiful third-party integration
  5. 5. Roadmap WHY use it? WHO should use it? WHAT is it? HOW does it work? Examples of WHERE and WHEN (case studies)
  6. 6. WHO needs it? If you: ● need content organization with flexible access control ● want private discussion or document-sharing spaces ● need a wiki or collaborative space, but want better usability and organization ● have subunits wanting to brand and control content but share other areas of their site.
  7. 7. Roadmap WHY use it? WHO should use it? WHAT is it? HOW does it work? Examples of WHERE and WHEN (case studies)
  8. 8. WHAT is Organic Groups (OG)? It’s a little Drupal site within your Drupal site! Groups: ● have members, roles, and permissions ● can have $THINGS added to them by their members Group content can be organized, displayed using group membership and a user’s group access.
  9. 9. WHAT is Organic Groups (OG)... cont? ● Each group is a collection of stuff + permissions ● Users can subscribe, or be added by members ● Members assigned roles, permissions ● Members administer, managing roles, users, permissions.
  10. 10. Another Group Group OG relates entities to parent entities Members and content are all entity references
  11. 11. Roadmap WHY use it? WHO should use it? WHAT is it? HOW does it work? Examples of WHERE and WHEN (case studies)
  12. 12. HOW? Group entities have attributes: ● ● ● ● Memberships (fieldable) State (active / pending / disabled) Roles Permissions ...which can integrate with:
  13. 13. HOW? Two key fields: Group (int): is the entity a group? Group audience (entityreference): assign this content to groups Plus helper fields: Group visibility (int): Can user alter content visibility Group roles and permissions (int): Let group manager override defaults
  14. 14. OG Field Settings (admin/config/group/fields)
  15. 15. Roadmap WHY use it? WHO should use it? WHAT is it? HOW does it work? Examples of WHERE and WHEN (case studies)
  16. 16. WHERE & WHEN? Case Study 1: Community sites Case Study 2: Content organization with baked-in access control Case Study 3: Subsite management
  17. 17. Case Study 1: Community sites ● Out of the box, OG is a community site-builder ● OpenAtrium, Commons: powered by OG
  18. 18. Case Study 1: Community sites ● Out of the box, OG is a community site-builder ● OpenAtrium, Commons: powered by OG ● Simple alternatives: ● Flag and/or Entityreference, with Node Access Node Reference to pass access ● Content Access, Forum
  19. 19. Case Study 2: an Intranet We needed self-organizing working groups, committees. Some wanted: ● universal public access ● mixed access ● specific access control over some content. … They all wanted to control memberships and permissions to add / edit / delete.
  20. 20. Classes!
  21. 21. Pros / Cons? Alternatives? Taxonomy Access Control (TAC), Content Access, Workbench... OG lets you: ● Delegate “module-lite” permissions to users ● Users manage almost anything in “their” group
  22. 22. Integrations OG LDAP - OG Menu - OG Workflow - Rules Views - Tokens - OG Moderation - Profile2 Panels - Search API - Webform - ... etc etc etc … About 387,000 results (0.20 seconds)
  23. 23. Case Study 3: “Multi-site” Website for organization with sub-units Share some structures, content, design Sub-units: ● ● ● ● Have own content requirements Content editors Need individualized branding Want their own domain
  24. 24. Case 3: Example UBC’s office of the Vice President Research & International (VPRI) reseach.ubc.ca
  25. 25. ors.ubc.ca uilo.ubc.ca sparc.ubc.ca research.ubc.ca/ore
  26. 26. Case 3: The OG Solution Create a content type “sub-site” as group type Create a number of group content types: “Announcement” “Carousel Item” “Event” “Page” “Profile” “Webform” Use views to create “sub-site” content blocks for shared group content types
  27. 27. Case 3: Organizing with OG Menus 1. When creating new group content types (e. g. Page) – check “Enable for OG Menus”
  28. 28. Case 3: Organizing with OG Menus 2. When creating new “sub-site” check “enable menu for this group”
  29. 29. Case 3: Organizing with OG Menus Organic Menus have own link under admin>structure Or can be access by path: admin/structure/og_menu
  30. 30. Case 3: Differentiating Sub-sites by Path Alias Edit url alias patterns to include “group” name in path Using token: [node:og-group-ref] Needed for: ● Views contextual filter ● Domain handling
  31. 31. Case 3: Theming Subsite Global Base Theme common look and feel Subthemes for each “sub-site” Each “sub-site” can apply theme settings, css, scripts, templates as needed
  32. 32. Case 3: Applying Theme to Sub-site Using “ThemeKey” module (admin/config/user-interface/themekey) Available Properties: Group ID Group Type Note: group:id = nid for group type entity instance
  33. 33. Case 3: Adding sub-site domain Server directives: 1. Create server alias for additional domains
  34. 34. Case 3: Redirect Domain Request to Sub-site Server directives: 2. Use rewrite rules to direct domain to right content path Mysub.domain.com => Mysub.domain.com/ <subsite>
  35. 35. Case 3: Domain Handling for Drupal Path 1. Make sure right path is attached to right domain Awkward – needs PHP redirect scripts
  36. 36. To sum up…. WHY: Flexibility, user control WHAT: Entities -> entities, roles, permissions WHO: needs a better wiki, community space, or sub-site. HOW: - Organic Groups Documentation: https://drupal. org/node/2014733 - Lullabot training videos: http://drupalize.me/series/organic-groups-drupal-7
  37. 37. The End Shout out to OG’s maintainer Amitai Burstein: amitaibu

×