Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Layout Builder Styles

Security covered Drupal 8–11
View on drupal.org

Overview

This module allow site builders to select from a list of styles to apply to layout builder blocks and layout builder sections.

A "style" is just a representation of one or more CSS classes that will be applied. Additionally, for blocks, a block template suggestion is added for the selected style.

Styles can be grouped, allowing site builders to select one or more styles from each group. For example, you could have a group called "Padding" which a few styles that affect the amount of padding around a block. An additional group "Color Scheme" can be added to allow site builders to choose between multiple color styling options for a block.

Features

  • Create multiple style "groups", allowing site builders to select a style from each group for the same block or section.
  • Enforce a selection of no more than 1 style, or allow any number of styles to be selected.
  • Optionally restrict styles to only be available on specific block types and section layout types.
  • Styles and style groups are config entities and can therefore be exported/imported as any other configuration.

Limitations

For sections, there's currently a requirement that the layout plugins available on your site already have a configuration form associated with them. This module alters that config form to add the style selection dropdown. See this guide for more information on how you can create your own layout plugins that have a configuration form.

Documentation

Please refer to the documentation for more information how to use this module.

Versions

The 8.x-1.x branch is compatible with Drupal 9 only. It is no longer maintained.
The 2.0.x branch is compatible with Drupal 9 and Drupal 10 and is actively maintained.

Version 8.x-1.0 and 2.0.0 are otherwise identical in terms of features. All site owners should upgrade to a 2.0.x version.

Related Modules

Depends on

Dependencies of the latest stable release

  • layout_builder Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.1.0 Stable 8–11 Sep 23, 2024