52
Group for D8 Managing groups has never been more awesome

Group - Drupalcamp London 2016

Embed Size (px)

Citation preview

Group for D8Managing groups has never been more awesome

• Drupal developer at Deeson

Kristiaan Van den Eynde

Kristiaan Van den Eynde• Drupal developer at Deeson• Antwerp, Belgium

Kristiaan Van den Eynde• Drupal developer at Deeson• Antwerp, Belgium• Happily married

Kristiaan Van den Eynde• Drupal developer at Deeson• Antwerp, Belgium• Happily married• Awesome cat

Kristiaan Van den Eynde• Drupal developer at Deeson• Antwerp, Belgium• Happily married• Awesome cat• Highly Sensitive Person

What is Group about?

Group is a management tool

Group is a management tool

• Group content together following a specific set of rules

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

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

What about OG?Asking the inevitable question in your stead

No needless bashing

(It’s bad karma)

No needless bashing

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:

But anyways

A story about the happiness of content

Group’s approach

Drupal Content College

Nodes

Drupal Content College

Users

Drupal Content College

Terms

Drupal Content College

Graduation day

Graduation day

Graduation dayGroup?

Group fixes thisIt makes the flurbs happy again

Drupal Content College

Happy graduates all around

Key take-aways• Groups do what they were meant to do all along

Key take-aways• Groups do what they were meant to do all along• We don’t touch other entities

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!

Under the hoodNot boring, I promise!

Groups have group types• Like content types, but for groups

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

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 NodeRedaction Article

How entities are grouped

Group NodeGroupContentRedaction Article

How entities are grouped

Group NodeGroupContent• FieldableRedaction Article

How entities are grouped

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

Managed by plugins?

Warning: developer porn

Managed by plugins?

Managed by plugins?

Live demoFor real this time!

Questions?

We’re hiring!