$30 off During Our Annual Pro Sale. View Details »

Paragraphs + Layout Discovery in Drupal 8

Paragraphs + Layout Discovery in Drupal 8

If you use the Paragraphs module and wish there was a way to more easily control the layout of referenced paragraphs on a particular node, this might be just what you were looking for. Entity Reference with Layout (ERL), a new module for Drupal 8, combines structured content (a la Paragraphs) with expressive layout control (a la Layout Discovery in core). Now you can quickly add new sections without leaving the content edit screen, choose from available layouts, add text or media to specific regions, drag them around, edit them, delete them, add more, and so on. The experience is easy-to-use, fast, and expressive.

In this session, we’ll run through a live demo of how to install, configure and use ERL. We'll talk about ideal use cases, how ERL differs from Layout Builder in core, and the kinds of factors that might make it a good fit for your project. Finally, we’ll talk through road map of future releases and features we’d like to see added.

Avatar for Justin Toupin

Justin Toupin

May 17, 2019
Tweet

Other Decks in Technology

Transcript

  1. • Paragraphs & Structured Content • Drupal 8 Layout API

    • Entity Reference with Layout Module What We’ll Cover Today
  2. • Site Builder • Developer (custom modules, front-end, whatever) •

    Content Editor • Project Manager • Designer • Other How would you describe yourself?
  3. Fieldable Entities • Define whatever type of content you want

    (blog, article, page, etc.) • Add whatever fields you want (text, images, geodata, address, etc.) • Incredibly flexible • Highly structured
  4. Why Fieldable Entities Matter • Maintainability • Separate Content from

    Presentation • Future Migrations • Create Once Publish Everywhere (COPE) • Decoupled Applications and Native Apps • More…
  5. A Layout consists of: • Template with regions • Library

    (CSS + Javascript) • Layout Plugin Layouts in Drupal 8 JS CSS
  6. Layouts are Used By • Layout Builder (core) • Bootstrap

    Layouts (contrib) • Bricks (contrib) • … a number of other modules
  7. Must have: Nice to have: • Works with paragraphs •

    Inline creation / editing • Easily move paragraphs into regions Paragraphs + Layouts • Drag and drop • Editing looks like frontend • Advanced layout options
  8. • Entity reference field • Extends Inline Entity Form •

    Of course, uses Layout API Entity Reference with Layout
  9. Requirements • Install Drupal • Create Some Paragraphs (shortcut: drupal.org/project/stories)

    • Install Entity Reference with Layout • Install ERL Paragraphs (optional) • Install ERL Layouts (optional)
  10. Resources • Download the module: aten.io/erl (redirects to drupal.org) •

    Paragraphs + Layout Blog Post: aten.io/paragraphs-with-layout • Structured Content Blog Post: aten.io/flexible-authoring