Bricks

Revolutionary new way of creating rich content in Drupal.

Drupal.org GitHub

Currently 8.x-1.4

Bricks — is a revolutionary new way of creating rich content in Drupal. Thanks to the powerful contributions like ECK and Entity Reference, Bricks itself is just ~13 KB of code (gzipped).

In terms of concept Bricks is a new generation of Paragraphs, drop-in replacement for Panelizer and a good friend to Display Suite and CKEditor or any other WYSIWYG. Shortly, it allows you to nest field items using Drupal drag & drop UI (exactly like for menu or taxonomy items).

Live demo

  1. Open pre-configured sandbox.
  2. Click Launch sandbox and wait.
  3. Follow the installation (all settings should be pre-filled, don’t change them).
  4. Go to Extend and install Bricks Bootstrap.
  5. Go to Appearance, install Tweme and set as default theme.
  6. Find a sample node and go to Edit mode to check magic out!
  7. Finally go to Content and create your own first Bricky page!
  8. Like it? => Support by ★ starring on GitHub or sharing on Twitter.

Video tutorial: vimeo.com/211714437.

Installation

The most easy-to-use method:

  1. Download and install Bricks Bootstrap with its dependencies.
  2. Download and enable Tweme (or any other Bootstrap 4 theme).
  3. Done!

Now you can create Bricky pages (content type) using powerful preconfigured Bricks such as Text, Image, Accordion, Carousel, Tabs and others (ECK bundles). Use auto-created “All new AirPods” node as a live playground.

Video tutorial: vimeo.com/211714437.

Paragraphs setup 8.x-1.3+, in Beta

  1. Download and install Bootstrap Paragraphs with its dependencies.
  2. Download and enable Bootstrap (or any other Bootstrap 3 theme).
  3. Download and install Bricks with its dependencies. Also enable Bricks Inline and Bricks Revisions.
  4. Go to Structure > Content types and create Bricky content type.
  5. Delete default Body field.
  6. Create new Body field of type Bricks (revisioned):
    • Name: Body (field_body)
    • Type of item to reference: Paragraph
    • Allowed number of values: Unlimited
  7. Go to Manage form display and set Bricks tree (Inline entity form) widget for Body field.
  8. Go to Manage display and hide label for Body field.
  9. Done!

Now you can create Bricky pages (content type) using your favorite Paragraphs such as Simple, Image, Accordion, Carousel, Tabs and others (Paragraph types).

Requirements

All new Bricks for D8 has no requirements and works with ANY entity types!

Submodules

Bricks Core

Bricks Inline 8.x-1.1+ — Integration with Inline Entity Form:

Bricks Revisions 8.x-1.3+ — Integration with Entity Reference Revisions:

Compatibility

Drupal Bricks ECK IEF ERR Bricks Bootstrap Paragraphs Bootstrap Paragraphs
8.x 1.x 1.x 1.x 1.x 4.x + Tweme 4.x 1.x 1.x + Bootstrap 3.x
8.2.7 1.4 1.0-alpha3 1.0-beta1 1.2 4.1 1.1 1.0-beta1
8.2.6 1.2 1.0-alpha3 1.0-beta1 4.0

Resources

FAQ

Are brick bundles translatable?
100% translatable (thanks Entity Translation and ECK). Just mark them as translatable at /admin/config/regional/content-language.
Which entity types are supported?
Bricks can hold references to any entities - ECK or Paragraphs, doesn’t matter. And Bricks Bootstrap is just an example of using ECK.
Does bricks support revisions of the parent entity?
Internally Bricks field is a multi-value Entity Reference field => standard revisioning mechanism works. Moreover, Bricks Revisions (core submodule) allows you to revision referenced entities.
Is there a reason why i can not just use bricks form widget for the normal paragraphs field?
Paragraphs couldn’t be nested using drag and drop! Bricks field allows you to do (like on gif).
How to get non-equal column layout, 4-8 in example?
Use universal Wrapper brick with custom CSS classes on it. Bootstrap example:

Wrapper (.row)
|-- Image (.col-sm-4)
|-- Text (.col-sm-8)