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

Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 

Recently uploaded (20)

Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

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