Display Builder with Bootstrap

This recipe extends the Display Builder Base recipe to provide a ready-to-use Bootstrap experience in Drupal thanks to UI Suite Bootstrap and UI Suite modules.

Specific version(s)

1.0 branch is with Drupal 11.3 only
1.1 branch is with Drupal 11.4+

Introduction

A site-builder-friendly Bootstrap theme. Use Bootstrap parts (components, helpers, utilities, and layouts) directly from the Drupal back office (with Display Builder) in a low-code way.

  • UI Suite provides a cohesive set of modules to implement full design systems in Drupal.

  • Display Builder leverages the full UI Suite API in a modern visual builder.

Documentation

Drupal recipe documentation:

Display Builder documentation:

Installation

  • Start with Drupal 11.3, 11.4 on branch 1.1.x is in current dev
composer create-project drupal/recommended-project:~11.3.13 drupal_bootstrap
cd drupal_bootstrap

Quick Icon libraries Setup

UI Suite Bootstrap support icons, here is a quick setup, for more information see UI Suite Bootstrap documentation.

Install with asset packagist, see [Drupal documentation](https://www.drupal.org/docs/develop/using-composer/manage-dependencies#s...):

composer config repo.asset-packagist composer https://asset-packagist.org
composer config --merge --json extra.installer-types '["npm-asset", "bower-asset"]'
composer config --merge --json extra.installer-paths '{"web/libraries/{$name}":["type:drupal-library", "type:npm-asset", "type:npm-asset"]}'
composer require oomphinc/composer-installers-extender:^2
composer require npm-asset/bootstrap-icons:^1.13.1

Quick Recipe Setup (11.3 only)

For documentation with Drupal < 11.2 see recipe documentation.

Temporarily require development versions of some modules:

composer config minimum-stability dev

Install the recipe:

composer require drupal/display_builder_bootstrap:^1.0.2 drupal/ui_styles:1.x-dev

Install Drush (recommended):

composer require drush/drush

Drupal Installation

Recipe is meant for a new website and can not be applied on an existing profile, only minimal profile is supported.

  • Install the Drupal Minimal profile

For example, with DDEV and Drush:

ddev config --project-type=drupal11 --docroot=web
ddev drush si -y minimal
  • Apply this recipe (11.3 only)

Run this command with DDEV, use ddev exec:

ddev exec -d /var/www/html/web php core/scripts/drupal recipe /var/www/html/recipes/display_builder_bootstrap

If the command succeeds, you should see the following output:

[OK] Display Builder with Bootstrap applied successfully

Important: Clear the Drupal cache after applying the recipe.

ddev drush cache:rebuild

Visit your website, for example with DDEV:

ddev launch

Login as admin to your website:

ddev drush uli

Project information

Releases