Boolean Block Formatter
1 sites
No security coverage
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
- Install as usual as per http://drupal.org/node/895232.
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
- Block Formatter: https://www.drupal.org/project/block_formatter
- Menu Formatter: https://www.drupal.org/project/menu_formatter
- Contact Formatter: https://www.drupal.org/project/contact_formatter
- Link Title Formatter: https://www.drupal.org/project/link_title_formatter