How to Content Model in Drupal 8
This session is the third one in the series, following the Drupal 8 Hidden Power at DrupalCon Dublin 2016 and Drupal Architectures for Flexible Content at DrupalCon Barcelona 2015. But unlike the previous two, this time we will focus on practical application and demos, exclusively for Drupal 8.
Atomic Design gives us a good vision on how to design the systems of components. But when it comes to the real project, things become more complicated and it can be really hard to implement.
Because it covers the design patterns, not the content building blocks. These two things are closely interrelated but have completely different meaning: first is a view, second is a model. And don't worry: we are not going to re-implement the atom (wheel)!
Let's try to create a big picture of content building process, review what we have in Drupal 8 and see how we can benefit from its core features keeping in mind Atomic Design principles.
Finally we will stop talking and go through a nifty Drupal 8 setup giving you desired flexibility.
The following topics will be highlighted:
- How to structure a page? In which independent components to split and how granularly?
- What is a difference between content items, building blocks and patterns/components?
- How to re-use content throughout website? How to render the same content differently depending on the context?
- How to organize the nesting of components?
- Where is a border between content and layout?
- Can layout be treated as a content?
- Why Paragraphs module doesn't work well in all cases?
The following modules will be covered:
- Content storage:
- Custom Block
- Entity Construction Kit
- Entity Translation
- Building blocks:
- Block Layout
- Field Layout
- View Modes
- Entity Reference
- Entity Reference Revisions
- Dynamic Entity Reference
- Layout Discovery
- Content editing:
- Inline Entity Form
- Entity Browser
- Entity Reference Live Preview
- Entity Reference Integrity
- Contextual Links
- Quick Edit
- Patterns and components:
- UI Patterns
- Pattern Lab
These very simple but extremely flexible techniques can be used for ANY Entity type and in almost ANY project. Re-understand your content today and create your own site buidling experience on top of Entity Reference, Layout API, Bricks and their wide contrib ecosystem!