Module Description
Field as Block provides an easy way to display one or more fields of the current node in a block.
This module aims to be a light weight alternative to modules like Panels and Display Suite, or using Views to define a block which only retrieves one field.
Difference from Ctools field blocks While Ctools field blocks rely on the formatter and settings from a configurable display mode, this module allows to configure the formatter and settings in the block configuration.
Usage (Drupal 7)
* Enable the module
* Open the Manage Display admin page of the entity (for instance: /admin/structure/types/manage/article/display for the article node type)
* Mark one or more fields to be displayed as block
* Select the desired formatter and formatter settings
* Set the field label to hidden if you do not want the block to have a title
* Save the Manage Display form
* Open the block administration form (/admin/structure/block) and assign the block(s) to a region
Usage (Drupal 8+) The process of the configuring Field as Block has changed significantly in Drupal 8.
* Enable the module (/admin/modules)
* Enable Entity Types to expose as "Field as block" blocks. (admin/config/fieldblock/fieldblockconfig)
* Open the block administration form (/admin/structure/block). Select “Place block” to add blocks(s) to a region.
* Locate blocks with the category ”Field as block" and select “Place block”
* Select the Field to display in the block
* Select the desired formatter and formatter settings
* Save the Configure block form
Tutorials I would like to thank the authors of these Drupal 7 tutorials:
* Create A Call To Action Block Using The Field As Block ModuleA tutorial with screenshots, by Ivan Zugec.
* Field as Block en DrupalA screencast in Spanish, by drupalalsur.
If you have a link to be added to this list, please let me know.
This module aims to be a light weight alternative to modules like Panels and Display Suite, or using Views to define a block which only retrieves one field.
Difference from Ctools field blocks While Ctools field blocks rely on the formatter and settings from a configurable display mode, this module allows to configure the formatter and settings in the block configuration.
Usage (Drupal 7)
* Enable the module
* Open the Manage Display admin page of the entity (for instance: /admin/structure/types/manage/article/display for the article node type)
* Mark one or more fields to be displayed as block
* Select the desired formatter and formatter settings
* Set the field label to hidden if you do not want the block to have a title
* Save the Manage Display form
* Open the block administration form (/admin/structure/block) and assign the block(s) to a region
Usage (Drupal 8+) The process of the configuring Field as Block has changed significantly in Drupal 8.
* Enable the module (/admin/modules)
* Enable Entity Types to expose as "Field as block" blocks. (admin/config/fieldblock/fieldblockconfig)
* Open the block administration form (/admin/structure/block). Select “Place block” to add blocks(s) to a region.
* Locate blocks with the category ”Field as block" and select “Place block”
* Select the Field to display in the block
* Select the desired formatter and formatter settings
* Save the Configure block form
Tutorials I would like to thank the authors of these Drupal 7 tutorials:
* Create A Call To Action Block Using The Field As Block ModuleA tutorial with screenshots, by Ivan Zugec.
* Field as Block en DrupalA screencast in Spanish, by drupalalsur.
If you have a link to be added to this list, please let me know.
Module Link
Project Usage
10647
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
Field as Block module provides an easy way to display one or more fields of the current node in a block, serving as a lightweight alternative to Panels, Display Suite, or using Views for single field blocks.
Data Name
fieldblock