Installation¶
Drupal 11.4+
Display Builder targets Drupal 11.4+. No previous version of Drupal support is planned.
It also requires PHP 8.3+ and UI Patterns 2.0.21+.
Like any other Drupal module, it is recommended to use composer:
Display Builder is split in sub-modules, one for each Drupal Core's display buildable:
- Entity view and entity view overrides (
display_builder_entity_view) - Page layout (
display_builder_page_layout) - Views (
display_builder_views)
They can be activated from Administration > Extend (/admin/modules) or with Drush:
You can also install Display Builder UI to configure Display Builder:
With the module installed, follow Build your first display to build a display end to end.
Recommended modules¶
Display Builder is automatically activating its dependencies:
- UI Patterns: the engine of Display Builder
- UI Patterns Field: for the entity overrides storage
- UI Patterns Library: provides a nice component library
The sub-modules activate their own dependencies too:
- Entity view (
display_builder_entity_view): Field UI, and UI Patterns Field Formatters to format each field item in entity displays - Views (
display_builder_views): Views, and UI Patterns Views
We are also recommending:
Local libraries¶
Display Builder relies on Shoelace component library, and HTMX sse extension.
By default libraries are loaded with CDN, but you can switch to local copies with drush:
And switch back to CDN mode with drush:
Currently asset.packagist provides a version of Shoelace with Lit dependencies.
Installation with package manager is recommended.
From your installation libraries folder (web/libraries or app/libraries):
Then, back in the libraries folder: