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

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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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
 
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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 

Recently uploaded (20)

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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

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