Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

Conditional Content Block Rendering in Layout Builder

This module provides a solution for conditional rendering of content blocks when they are placed in Layout Builder.
It allows you to set rules for each block, determining when they should
be rendered based on the specific conditions.

Features

The basic functionality of this module is to provide a user-friendly interface for defining conditions under which certain content blocks will be rendered when used on the layout builder.

It is a simple approach that uses conditions to compare tokens against values.

This can be used to create dynamic, context-sensitive layouts. For example, you might use this module to show a specific block only to logged-in users or to display a block for users who meet certain criteria.

Post-Installation

After installing the module, when you create a new content block or edit an
existing one, you'll find a new section for defining rendering conditions.
You can add as many conditions as you need for each block, and the block will
only be shown or hidden based on the conditions you define.

Additional Requirements

This module requires Drupal core. No additional modules, libraries, or APIs are
required.

Recommended Modules

While not required, the Token module can
be used in conjunction with this module to show available tokens and provide
additional flexibility in defining rendering conditions.

Similar projects

There is a push to bring visibility control of blocks within Layout Builder to Drupal Core, but until then, this is a working solution to archive the same goal.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.2 Stable Nov 8, 2024