Download - Group - Drupalcamp London 2016
Kristiaan Van den Eynde• Drupal developer at Deeson• Antwerp, Belgium• Happily married• Awesome cat• Highly Sensitive Person
Group is a management tool
• Group content together following a specific set of rules• Grant users permissions for a small section of the site
AWESOME
Group is a management tool
• Group content together following a specific set of rules• Grant users permissions for a small section of the site• Control access to specific pieces of content
AWESOME
No needless bashing(It’s bad karma)
• It repurposes existing entities• Its groups can overrule configuration (hence: organic)• All of its magic is based on who has what fields • The user experience wasn’t really great
What I didn’t like about OG:
Key take-aways• Groups do what they were meant to do all along• We don’t touch other entities• Flurbs should be happy
Key take-aways• Groups do what they were meant to do all along *• We don’t touch other entities• Flurbs should be happy
* Dedicated classes!
Groups have group types• Like content types, but for groups• Defines fields, permissions and available content
Groups have group types• Like content types, but for groups• Defines fields, permissions and available content• Applies to all groups of that type, no per-group overrides
Group tells two stories
• Members• Don’t really care about
the content, but more about the relationship
• Example: gaming portal
Why or how?
Group tells two stories
• Members• Don’t really care about
the content, but more about the relationship
• Example: gaming portal
Why or how? What?• Private nodes• Don’t really care about
the relationship, but more about the content
• Example: paid content
Group NodeGroupContent• Fieldable• Per group type,
per target entity
Redaction Article
How entities are grouped
Group NodeGroupContent• Fieldable• Per group type,
per target entity• Managed by plugins
Redaction Article
How entities are grouped