Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Layout Builder Section Variations

No security coverage Maintenance fixes only 14 sites

This module enhances Drupal's Layout Builder by allowing you to create and manage different visual variations for sections. It also provides template suggestions to easily customize the appearance of layouts based on the chosen section variation.

This module lets you create and manage different section variations in Drupal's Layout Builder to customize section appearances. It also provides template suggestions for easy layout customization based on the selected variation.

Requirements

This module requires the following modules to be installed:

  • Drupal core ^10 || ^11
  • Layout Builder

Installation

Use cases

  • Define multiple section variations in order to alter the section appearance
  • Override a specific Layout builder section template

Configuration

This module adds a configuration page where you can define multiple Section variations. The configuration page can be found at /admin/config/content/layout-builder-section-variations

Usage

  • Once the module is enabled and configured, you can start using it on the
    Layout.
  • When you add/edit a section, you will see a new field called
    "Variation". This is a list of all defined Section variations.
  • The selected Section variation will be available in the theme hook suggestions. For example: The Default variation (on a "One column" layout) will now allow you to override the layout.html.twig, layout--onecol.html.twig, layout--default.html.twig and layout--onecol--default.html.twig templates.

Support

This is a contrib module and as such, it's not officially supported by the
Drupal community. However, you can open an issue on the module's page on
drupal.org if you find any bugs or have any feature requests.

Drupal 10–11 PHP >=8.3

Ask your assistant about Layout Builder Section Variations

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
3
Tracked since
Oct 2024
Latest release
2 weeks ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.1 Stable 10–11 PHP >=8.3 Sep 23, 2026
1.0.0 Stable 10–11 Oct 16, 2024
1.0.x-dev Dev 10–11 Oct 16, 2024