SlideShare a Scribd company logo
1 of 46
Download to read offline
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 Computer Science
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 organize
around content they care about
Flexible user-powered access control
Plentiful third-party integration
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-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.
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 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.
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.
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
Permissions

...which can integrate with:
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
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: Subsite management
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
● Simple alternatives:
● Flag and/or Entityreference, with Node
Access Node Reference to pass access
● Content Access, Forum
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.
Classes!
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
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)
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
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:
“Announcement”
“Carousel Item”
“Event”
“Page”
“Profile”
“Webform”

Use views to create “sub-site” content blocks
for shared group content types
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/structure/og_menu
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
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
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
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
Mysub.domain.com
=>
Mysub.domain.com/
<subsite>
Case 3: Domain Handling for Drupal Path
1. Make sure right path is attached to right domain
Awkward – needs PHP redirect scripts
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
The End
Shout out to OG’s maintainer Amitai Burstein:
amitaibu
Using Drupal's Organic Groups, an Introduction - PNWDS 2013

More Related Content

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

Web 2.0 Resources for Teaching
Web 2.0 Resources for TeachingWeb 2.0 Resources for Teaching
Web 2.0 Resources for TeachingAlexis Alexander
 
Yvonne Gando and Utkarsh Seth: Making Content Objective
Yvonne Gando and Utkarsh Seth: Making Content ObjectiveYvonne Gando and Utkarsh Seth: Making Content Objective
Yvonne Gando and Utkarsh Seth: Making Content ObjectiveJack Molisani
 
Open Source Social Software
Open Source Social SoftwareOpen Source Social Software
Open Source Social SoftwareJosie Fraser
 
Economics 2.0
Economics 2.0Economics 2.0
Economics 2.0NIAS
 
Blogging for Teaching and Research
Blogging for Teaching and ResearchBlogging for Teaching and Research
Blogging for Teaching and ResearchJeremy Boggs
 
Loosely Coupled Teaching with "Web 2.0" Tools (2008)
Loosely Coupled Teaching with "Web 2.0" Tools (2008)Loosely Coupled Teaching with "Web 2.0" Tools (2008)
Loosely Coupled Teaching with "Web 2.0" Tools (2008)Jared Stein
 
Migrating to Drupal: Open Source Library Intranets
Migrating to Drupal: Open Source Library IntranetsMigrating to Drupal: Open Source Library Intranets
Migrating to Drupal: Open Source Library IntranetsNina McHale
 
Oa2 10 tips and tricks
Oa2 10 tips and tricksOa2 10 tips and tricks
Oa2 10 tips and tricksPhase2
 
Dave de Roure - The myExperiment approach towards Open Science
Dave de Roure - The myExperiment approach towards Open ScienceDave de Roure - The myExperiment approach towards Open Science
Dave de Roure - The myExperiment approach towards Open Scienceshwu
 
[MS PowerPoint 97/2000 format]
[MS PowerPoint 97/2000 format][MS PowerPoint 97/2000 format]
[MS PowerPoint 97/2000 format]webhostingguy
 
[MS PowerPoint 97/2000 format]
[MS PowerPoint 97/2000 format][MS PowerPoint 97/2000 format]
[MS PowerPoint 97/2000 format]webhostingguy
 
Engaging Virtual Communities: Web 2.0
Engaging Virtual Communities: Web 2.0Engaging Virtual Communities: Web 2.0
Engaging Virtual Communities: Web 2.0lisbk
 
Content Architectures in WordPress 5
Content Architectures in WordPress 5Content Architectures in WordPress 5
Content Architectures in WordPress 5Jamie Schmid
 

Similar to Using Drupal's Organic Groups, an Introduction - PNWDS 2013 (20)

Libraries meet research 2.0
Libraries meet research 2.0Libraries meet research 2.0
Libraries meet research 2.0
 
Online Tools for Group Work
Online Tools for Group WorkOnline Tools for Group Work
Online Tools for Group Work
 
Web 2.0 Resources for Teaching
Web 2.0 Resources for TeachingWeb 2.0 Resources for Teaching
Web 2.0 Resources for Teaching
 
Tec2010 Buckley Share
Tec2010 Buckley ShareTec2010 Buckley Share
Tec2010 Buckley Share
 
Task 8- group 3- cei-ufmg
Task 8- group 3- cei-ufmgTask 8- group 3- cei-ufmg
Task 8- group 3- cei-ufmg
 
Resource-sharing Central Search | LocalGov Digital Hack Presentation | June ...
Resource-sharing Central Search | LocalGov Digital Hack Presentation | June ...Resource-sharing Central Search | LocalGov Digital Hack Presentation | June ...
Resource-sharing Central Search | LocalGov Digital Hack Presentation | June ...
 
Yvonne Gando and Utkarsh Seth: Making Content Objective
Yvonne Gando and Utkarsh Seth: Making Content ObjectiveYvonne Gando and Utkarsh Seth: Making Content Objective
Yvonne Gando and Utkarsh Seth: Making Content Objective
 
Open Source Social Software
Open Source Social SoftwareOpen Source Social Software
Open Source Social Software
 
Economics 2.0
Economics 2.0Economics 2.0
Economics 2.0
 
Blogging for Teaching and Research
Blogging for Teaching and ResearchBlogging for Teaching and Research
Blogging for Teaching and Research
 
Loosely Coupled Teaching with "Web 2.0" Tools (2008)
Loosely Coupled Teaching with "Web 2.0" Tools (2008)Loosely Coupled Teaching with "Web 2.0" Tools (2008)
Loosely Coupled Teaching with "Web 2.0" Tools (2008)
 
Migrating to Drupal: Open Source Library Intranets
Migrating to Drupal: Open Source Library IntranetsMigrating to Drupal: Open Source Library Intranets
Migrating to Drupal: Open Source Library Intranets
 
Oa2 10 tips and tricks
Oa2 10 tips and tricksOa2 10 tips and tricks
Oa2 10 tips and tricks
 
Liferay
LiferayLiferay
Liferay
 
Dave de Roure - The myExperiment approach towards Open Science
Dave de Roure - The myExperiment approach towards Open ScienceDave de Roure - The myExperiment approach towards Open Science
Dave de Roure - The myExperiment approach towards Open Science
 
My Experiment
My ExperimentMy Experiment
My Experiment
 
[MS PowerPoint 97/2000 format]
[MS PowerPoint 97/2000 format][MS PowerPoint 97/2000 format]
[MS PowerPoint 97/2000 format]
 
[MS PowerPoint 97/2000 format]
[MS PowerPoint 97/2000 format][MS PowerPoint 97/2000 format]
[MS PowerPoint 97/2000 format]
 
Engaging Virtual Communities: Web 2.0
Engaging Virtual Communities: Web 2.0Engaging Virtual Communities: Web 2.0
Engaging Virtual Communities: Web 2.0
 
Content Architectures in WordPress 5
Content Architectures in WordPress 5Content Architectures in WordPress 5
Content Architectures in WordPress 5
 

Recently uploaded

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Recently uploaded (20)

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

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

  • 1. WHO, WHAT, WHERE, WHEN, WHY… HOW? A whirlwind tour of OG2!
  • 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. Roadmap WHY use it? WHO should use it? WHAT is it? HOW does it work? Examples of WHERE and WHEN (case studies)
  • 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. Roadmap WHY use it? WHO should use it? WHAT is it? HOW does it work? Examples of WHERE and WHEN (case studies)
  • 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. Roadmap WHY use it? WHO should use it? WHAT is it? HOW does it work? Examples of WHERE and WHEN (case studies)
  • 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. 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. Another Group Group OG relates entities to parent entities Members and content are all entity references
  • 11. Roadmap WHY use it? WHO should use it? WHAT is it? HOW does it work? Examples of WHERE and WHEN (case studies)
  • 12. HOW? Group entities have attributes: ● ● ● ● Memberships (fieldable) State (active / pending / disabled) Roles Permissions ...which can integrate with:
  • 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.
  • 15. OG Field Settings (admin/config/group/fields)
  • 16. Roadmap WHY use it? WHO should use it? WHAT is it? HOW does it work? Examples of WHERE and WHEN (case studies)
  • 17. WHERE & WHEN? Case Study 1: Community sites Case Study 2: Content organization with baked-in access control Case Study 3: Subsite management
  • 18. Case Study 1: Community sites ● Out of the box, OG is a community site-builder ● OpenAtrium, Commons: powered by OG
  • 19.
  • 20.
  • 21.
  • 22. 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
  • 23. 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.
  • 24.
  • 25.
  • 27. 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
  • 28.
  • 29.
  • 30. 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)
  • 31. 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
  • 32. Case 3: Example UBC’s office of the Vice President Research & International (VPRI) reseach.ubc.ca
  • 34. 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
  • 35. Case 3: Organizing with OG Menus 1. When creating new group content types (e. g. Page) – check “Enable for OG Menus”
  • 36. Case 3: Organizing with OG Menus 2. When creating new “sub-site” check “enable menu for this group”
  • 37. Case 3: Organizing with OG Menus Organic Menus have own link under admin>structure Or can be access by path: admin/structure/og_menu
  • 38. 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
  • 39. 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
  • 40. 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
  • 41. Case 3: Adding sub-site domain Server directives: 1. Create server alias for additional domains
  • 42. 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>
  • 43. Case 3: Domain Handling for Drupal Path 1. Make sure right path is attached to right domain Awkward – needs PHP redirect scripts
  • 44. 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
  • 45. The End Shout out to OG’s maintainer Amitai Burstein: amitaibu