Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Boolean Block Formatter

1 sites No security coverage
View on drupal.org

This module allows you to display a pre-configured block within your content based on the value of a boolean field. You can attach a specific block in your entity's display settings to be shown or hidden depending on whether a checkbox is checked.

Summary

  • This module is used to render a pre-configured block based on a toggle switch from a boolean field.
  • If you want to show or hide a block within the content area based on a checkbox value, this is the module for you!
  • You need to configure which block to be displayed in the field formatter settings for the boolean field in the entity's manage display screen.

Requirements

You must have the block and display suite modules installed.

Installation

Usage

  • Create a boolean field.
  • On the entity's display settings, set the display to use "Boolean Block Formatter" for the boolean field.
  • Select the block you need to display on the field formatter settings.

Important Note

This module loads only the configured blocks, that means a block that is placed in the block layout. It does not load plugins. You can place the block in the Disabled section, if you only want to configure the block, but don't want to show the block in a region.

Similar Modules

Activity

Total releases
1
First release
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
2.1.0 Stable Jan 31, 2025