SlideShare une entreprise Scribd logo
1  sur  47
Télécharger pour lire hors ligne
PRESENTS
Context toevoegen aan
uw Drupal site met
Organic Groups
Drupal User Group
drupal.be
Me
Stijn De Meyere
Drupal Developer
@stijndm
Organic Groups
Enable users to create and manage their own
'groups'. Each group can have subscribers, and
maintains a group home page where subscribers
communicate amongst themselves.
Agenda
● Cases
● Basis concepten van Organic Groups
● Welke API is er voor handen
● Integratie en uitbreiding
● Uitlichten cases
● Nababbelen
Inspireren
Cases
3 cases
● Corporate site met brandsites
● Boekenplatform met e-commerce integratie
● Ledenmanagementplatform
Deme Brandsites
Deme Brandsites - http://deme-group.com
Deme Brandsites - http://deme-group.com
Deme Brandsites - http://deme-group.com
Uitdagingen
● Gedeelde content over corporate site en brandsites
● Delegeren van content over de verschillende brandsites
● Verschillende content beheerders, met eigen rollen en
rechten
● Content workflows
● Zelf aanmaken en beheren van brandsites
● Brandsite beheerders
● (Beperkte) meertaligheid
Boeda boekenplatform
Boeda boekenplatform
Boeda boekenplatform
Uitdagingen
● Verschillende type gebruikers
○ Uitgevers
○ Vertegenwoordigers/verkopers
○ Boekhandels
● Elke entiteit kan meerdere beheerders hebben
● Bepaalde gebruikers moeten overkoepelend kunnen werken
● E-commerce
KSJ Leden management
KSJ Leden management platform
KSJ Leden management platform
● Verschillende type leden
● Verschillende rechten afhankelijk van uw groep en rol binnen
uw groep
● Groep-overkoepelende rollen
● Bijhouden van ledengeschiedenis
● Groepen hiërarchie
Uitdagingen
De basics
Organic groups basics
● Group and Group Audience
● OG membership
● OG permissions
● OG roles
● OG context
Group and
Group
Audience
Group
Field dat een entity als
group aanduidt.
Niet zichtbaar in UI.
Group Audience
Entity reference field
met specifiek group
gedrag.
Koppelt een entity aan
een groep.
OG
Membership
Entity dat een
lidmaatschap
aanduidt.
bv: gebruiker X is lid
van groep 1
Er kunnen
verschillende types
gedefinieerd worden.
Vergelijkbaar met type
krantenabonnement: 6
maanden vs 12
maanden.
OG roles &
permissions
Een interne rollen
systeem dat toelaat
om op groepniveau
rechten toe te kennen.
bv: een rol die toelaat
nieuwsberichten te
publiceren in een
groep
OG context
Een conditioneel
systeem die toelaat
een groep te activeren
op basis van bepaalde
kenmerken
Net als de core
language negotiation
OG API
Dé beste resource voor
wat OG doet en kan:
● og.module
● og.api.php
Wat je moet
weten
(1) Entity reference wordt
onderschept en opgeslaan als
og_membership.
EntityFieldQuery kan wel nog gebruikt
worden. Zie:
og_entity_query_alter()
og_query_og_membership_alter()
(2) Alles kan van alles lid zijn.
Elke entity kan als groep dienen,
elke entity kan als lid fungeren.
Groep of groep content
og_is_group($entity_type, $type)
og_is_group_type($entity_type, $bundle_name)
og_is_group_content_type($entity_type, $bundle_name)
Iets of iemand lid maken
og_group($group_type, $gid, $values, $save_created)
og_ungroup($group_type, $gid, $entity_type, $etid)
og_get_entity_groups($entity_type, $entity, $states)
Rechten beheren
hook_og_permission()
og_user_access($group_type, $gid, $string, $account, ...)
hook_og_user_access_alter()
og_role_grant($group_type, $gid, $uid, $rid)
og_role_revoke($group_type, $gid, $uid, $rid)
og_roles()
og_get_user_roles()
Lidmaatschap opvragen
og_is_member($group_type, $gid, $entity_type, $entity)
og_get_groups_by_user($account, $group_type)
og_get_entity_groups($entity_type, $entity, $states)
Membership laden op basis van groep en entity
og_get_membership()
When funny things happen
og_flush_caches()
typical databse caches
og_invalidate_cache()
includes static caches
Context
Ook wel, welke groep is er nu eigenlijk actief
og_context($group_type)
Of als je een specifieke groep wil activeren
og_context($group_type, $group)
hook_og_context_negotiation_info()
Rules
Let rules do all the leg
work.
Integregeren en
uitbreiden
Code, cases, demos
Te bekijken
● OG Context
● Autopopulate
● PURL
● Variable & variable realms
● Views integrations
● Dynamic nodequeues
Limieten & lessen
Revisions zijn lastig
In het algemeen geschiedenis bijhouden van leden en status
Globale admins
User 1 rechten dupliceren
Multiple memberships
& types
OG Membership is nogal single minded
OG Permissions vs Site
Permissions
Dat loopt soms door mekaar en kan onverwachte resultaten
geven. Goed over nadenken.
Heb ik iets gemist?
C-MINE 1 BUS 13
Evence Coppéelaan 91
3600 Genk
Belgium
Phone +32 89 20 15 00
Fax +32 89 20 15 01
Info@nascom.be
Thanks!

Contenu connexe

Similaire à Adding context to your site using Drupal Organic Groups

Smartsite iXperion Redactiebasistraining
Smartsite iXperion RedactiebasistrainingSmartsite iXperion Redactiebasistraining
Smartsite iXperion RedactiebasistrainingOmegaJunior.Net
 
Presentatie saMBO~ICT 2010
Presentatie saMBO~ICT 2010Presentatie saMBO~ICT 2010
Presentatie saMBO~ICT 2010Wytze Koopal
 
Drupal 7 Theming
Drupal 7 ThemingDrupal 7 Theming
Drupal 7 ThemingHans Rossel
 
Multimediagebruik in Drupal 7 met de Media module
Multimediagebruik in Drupal 7 met de Media module Multimediagebruik in Drupal 7 met de Media module
Multimediagebruik in Drupal 7 met de Media module Raymond Muilwijk
 
Lucius Websystems Drupal Startersdag
Lucius Websystems Drupal StartersdagLucius Websystems Drupal Startersdag
Lucius Websystems Drupal StartersdagLuciuswebsystems
 
Drupal Views Cck Hans Rossel
Drupal Views Cck Hans RosselDrupal Views Cck Hans Rossel
Drupal Views Cck Hans RosselHans Rossel
 
Navorming ict ondersteund leren coltd
Navorming ict ondersteund leren coltdNavorming ict ondersteund leren coltd
Navorming ict ondersteund leren coltdArtevelde - VUB
 
Wat is drupal? - Drupal seminar 20 mei 2010, Colours
Wat is drupal? - Drupal seminar 20 mei 2010, ColoursWat is drupal? - Drupal seminar 20 mei 2010, Colours
Wat is drupal? - Drupal seminar 20 mei 2010, ColoursColours B.V.
 
1 integratie ict 2016 2017 (1)
1 integratie ict 2016 2017 (1)1 integratie ict 2016 2017 (1)
1 integratie ict 2016 2017 (1)christofdesloovere
 
Let's Learn IT - CommunIcaTie
Let's Learn IT - CommunIcaTieLet's Learn IT - CommunIcaTie
Let's Learn IT - CommunIcaTieLet's Learn IT
 
Les 3 Inct. Training WordPress
Les 3 Inct. Training WordPressLes 3 Inct. Training WordPress
Les 3 Inct. Training WordPressPeter Luit
 
V-ICT-OR SHOPT IT 2014
V-ICT-OR SHOPT IT 2014V-ICT-OR SHOPT IT 2014
V-ICT-OR SHOPT IT 2014V-ICT-OR
 
Drupal intro 2010
Drupal intro 2010Drupal intro 2010
Drupal intro 2010Hans Rossel
 
Confederatie bouw - 13 maart 2018 - Een website bouwen met Wordpress.com
Confederatie bouw - 13 maart 2018 - Een website bouwen met Wordpress.comConfederatie bouw - 13 maart 2018 - Een website bouwen met Wordpress.com
Confederatie bouw - 13 maart 2018 - Een website bouwen met Wordpress.comI Like Media
 
Viaa presentatie bootcamp 2019 Matthias Priem
Viaa presentatie bootcamp 2019 Matthias PriemViaa presentatie bootcamp 2019 Matthias Priem
Viaa presentatie bootcamp 2019 Matthias PriemPACKED vzw
 

Similaire à Adding context to your site using Drupal Organic Groups (20)

Smartsite iXperion Redactiebasistraining
Smartsite iXperion RedactiebasistrainingSmartsite iXperion Redactiebasistraining
Smartsite iXperion Redactiebasistraining
 
Presentatie saMBO~ICT 2010
Presentatie saMBO~ICT 2010Presentatie saMBO~ICT 2010
Presentatie saMBO~ICT 2010
 
Mis02 Hc6
Mis02 Hc6Mis02 Hc6
Mis02 Hc6
 
Drupal 7 Theming
Drupal 7 ThemingDrupal 7 Theming
Drupal 7 Theming
 
Multimediagebruik in Drupal 7 met de Media module
Multimediagebruik in Drupal 7 met de Media module Multimediagebruik in Drupal 7 met de Media module
Multimediagebruik in Drupal 7 met de Media module
 
Lucius Websystems Drupal Startersdag
Lucius Websystems Drupal StartersdagLucius Websystems Drupal Startersdag
Lucius Websystems Drupal Startersdag
 
Drupal Views Cck Hans Rossel
Drupal Views Cck Hans RosselDrupal Views Cck Hans Rossel
Drupal Views Cck Hans Rossel
 
Drupalgardens
DrupalgardensDrupalgardens
Drupalgardens
 
Navorming ict ondersteund leren coltd
Navorming ict ondersteund leren coltdNavorming ict ondersteund leren coltd
Navorming ict ondersteund leren coltd
 
Wat is drupal? - Drupal seminar 20 mei 2010, Colours
Wat is drupal? - Drupal seminar 20 mei 2010, ColoursWat is drupal? - Drupal seminar 20 mei 2010, Colours
Wat is drupal? - Drupal seminar 20 mei 2010, Colours
 
1 integratie ict 2016 2017 (1)
1 integratie ict 2016 2017 (1)1 integratie ict 2016 2017 (1)
1 integratie ict 2016 2017 (1)
 
Let's Learn IT - CommunIcaTie
Let's Learn IT - CommunIcaTieLet's Learn IT - CommunIcaTie
Let's Learn IT - CommunIcaTie
 
Les 3 Inct. Training WordPress
Les 3 Inct. Training WordPressLes 3 Inct. Training WordPress
Les 3 Inct. Training WordPress
 
V-ICT-OR SHOPT IT 2014
V-ICT-OR SHOPT IT 2014V-ICT-OR SHOPT IT 2014
V-ICT-OR SHOPT IT 2014
 
Drupal intro 2010
Drupal intro 2010Drupal intro 2010
Drupal intro 2010
 
MediaWiki in Bedrijf
MediaWiki in BedrijfMediaWiki in Bedrijf
MediaWiki in Bedrijf
 
Bloggen
BloggenBloggen
Bloggen
 
Confederatie bouw - 13 maart 2018 - Een website bouwen met Wordpress.com
Confederatie bouw - 13 maart 2018 - Een website bouwen met Wordpress.comConfederatie bouw - 13 maart 2018 - Een website bouwen met Wordpress.com
Confederatie bouw - 13 maart 2018 - Een website bouwen met Wordpress.com
 
Viaa presentatie bootcamp 2019 Matthias Priem
Viaa presentatie bootcamp 2019 Matthias PriemViaa presentatie bootcamp 2019 Matthias Priem
Viaa presentatie bootcamp 2019 Matthias Priem
 
Viaa presentatie bootcamp 2019 Matthias Priem
Viaa presentatie bootcamp 2019 Matthias PriemViaa presentatie bootcamp 2019 Matthias Priem
Viaa presentatie bootcamp 2019 Matthias Priem
 

Plus de Nascom

Nascom introduction sensation-perception
Nascom introduction sensation-perceptionNascom introduction sensation-perception
Nascom introduction sensation-perceptionNascom
 
Darefest 2014: how to prototype your organisation
Darefest 2014: how to prototype your organisationDarefest 2014: how to prototype your organisation
Darefest 2014: how to prototype your organisationNascom
 
What we learned at EuroIA 2014
What we learned at EuroIA 2014What we learned at EuroIA 2014
What we learned at EuroIA 2014Nascom
 
Meetup Dare Devils: how to prototype your organisation?
Meetup Dare Devils: how to prototype your organisation?Meetup Dare Devils: how to prototype your organisation?
Meetup Dare Devils: how to prototype your organisation?Nascom
 
Nascom update 1- The Mission of Drupal 8
Nascom update 1- The Mission of Drupal 8Nascom update 1- The Mission of Drupal 8
Nascom update 1- The Mission of Drupal 8Nascom
 
Nascom update 1 - Recent realisations in Drupal & Symfony
Nascom update 1 - Recent realisations in Drupal & SymfonyNascom update 1 - Recent realisations in Drupal & Symfony
Nascom update 1 - Recent realisations in Drupal & SymfonyNascom
 
Nascom update 1 - Warm welcome
Nascom update 1 - Warm welcomeNascom update 1 - Warm welcome
Nascom update 1 - Warm welcomeNascom
 
The state of Drupal 8
The state of Drupal 8The state of Drupal 8
The state of Drupal 8Nascom
 
Devops, or how we streamline the workflow at Nascom
Devops, or how we streamline the workflow at Nascom Devops, or how we streamline the workflow at Nascom
Devops, or how we streamline the workflow at Nascom Nascom
 
Nascom Drupal & Symfony projects 2013
Nascom Drupal & Symfony projects 2013Nascom Drupal & Symfony projects 2013
Nascom Drupal & Symfony projects 2013Nascom
 
Presentation drupalaton, August 2013
Presentation drupalaton, August 2013Presentation drupalaton, August 2013
Presentation drupalaton, August 2013Nascom
 
Evil Service design and how to become rich
Evil Service design and how to become richEvil Service design and how to become rich
Evil Service design and how to become richNascom
 
Contentstrategy introduction
Contentstrategy introductionContentstrategy introduction
Contentstrategy introductionNascom
 
nascom.be - user based digital content marketing strategy flow
nascom.be - user based digital content marketing strategy flownascom.be - user based digital content marketing strategy flow
nascom.be - user based digital content marketing strategy flowNascom
 
nascom.be user based digital content strategy
nascom.be user based digital content strategynascom.be user based digital content strategy
nascom.be user based digital content strategyNascom
 
Gamification is key to the publisher's future?
Gamification is key to the publisher's future?Gamification is key to the publisher's future?
Gamification is key to the publisher's future?Nascom
 
Duyvis case
Duyvis caseDuyvis case
Duyvis caseNascom
 
Design for multitouch
Design for multitouchDesign for multitouch
Design for multitouchNascom
 
Creative digital workshop
Creative digital workshopCreative digital workshop
Creative digital workshopNascom
 
Nascom Touch cases
Nascom Touch casesNascom Touch cases
Nascom Touch casesNascom
 

Plus de Nascom (20)

Nascom introduction sensation-perception
Nascom introduction sensation-perceptionNascom introduction sensation-perception
Nascom introduction sensation-perception
 
Darefest 2014: how to prototype your organisation
Darefest 2014: how to prototype your organisationDarefest 2014: how to prototype your organisation
Darefest 2014: how to prototype your organisation
 
What we learned at EuroIA 2014
What we learned at EuroIA 2014What we learned at EuroIA 2014
What we learned at EuroIA 2014
 
Meetup Dare Devils: how to prototype your organisation?
Meetup Dare Devils: how to prototype your organisation?Meetup Dare Devils: how to prototype your organisation?
Meetup Dare Devils: how to prototype your organisation?
 
Nascom update 1- The Mission of Drupal 8
Nascom update 1- The Mission of Drupal 8Nascom update 1- The Mission of Drupal 8
Nascom update 1- The Mission of Drupal 8
 
Nascom update 1 - Recent realisations in Drupal & Symfony
Nascom update 1 - Recent realisations in Drupal & SymfonyNascom update 1 - Recent realisations in Drupal & Symfony
Nascom update 1 - Recent realisations in Drupal & Symfony
 
Nascom update 1 - Warm welcome
Nascom update 1 - Warm welcomeNascom update 1 - Warm welcome
Nascom update 1 - Warm welcome
 
The state of Drupal 8
The state of Drupal 8The state of Drupal 8
The state of Drupal 8
 
Devops, or how we streamline the workflow at Nascom
Devops, or how we streamline the workflow at Nascom Devops, or how we streamline the workflow at Nascom
Devops, or how we streamline the workflow at Nascom
 
Nascom Drupal & Symfony projects 2013
Nascom Drupal & Symfony projects 2013Nascom Drupal & Symfony projects 2013
Nascom Drupal & Symfony projects 2013
 
Presentation drupalaton, August 2013
Presentation drupalaton, August 2013Presentation drupalaton, August 2013
Presentation drupalaton, August 2013
 
Evil Service design and how to become rich
Evil Service design and how to become richEvil Service design and how to become rich
Evil Service design and how to become rich
 
Contentstrategy introduction
Contentstrategy introductionContentstrategy introduction
Contentstrategy introduction
 
nascom.be - user based digital content marketing strategy flow
nascom.be - user based digital content marketing strategy flownascom.be - user based digital content marketing strategy flow
nascom.be - user based digital content marketing strategy flow
 
nascom.be user based digital content strategy
nascom.be user based digital content strategynascom.be user based digital content strategy
nascom.be user based digital content strategy
 
Gamification is key to the publisher's future?
Gamification is key to the publisher's future?Gamification is key to the publisher's future?
Gamification is key to the publisher's future?
 
Duyvis case
Duyvis caseDuyvis case
Duyvis case
 
Design for multitouch
Design for multitouchDesign for multitouch
Design for multitouch
 
Creative digital workshop
Creative digital workshopCreative digital workshop
Creative digital workshop
 
Nascom Touch cases
Nascom Touch casesNascom Touch cases
Nascom Touch cases
 

Adding context to your site using Drupal Organic Groups