Add fields to a block [D8]
Last updated on
30 April 2025
This documentation is written for the 8.x-2.x version of Display Suite.
By following this method the site builder gets a block to place that can have a set of fields as defined by a view mode. The block's display can be templated in twig accordingly, and its theming will reflect any selected layouts in the display suite controls.
For example, you can create fields that appear as a block in a "hero" or "billboard" region, which will display automatically in the hero when visiting the page for that node, which is showing the default display mode in the main region of the page.
Configure
- Install ctools module
- Configure a new view mode (admin/structure/display-modes/view) with all the needed fields (under "Manage Display" of the respective content type)
- Go to Administration > Structure > Block (admin/structure/block)
- Click Add block in the region you want to display the fields
- Place a "Entity view" block, that will have the category of Chaos tools
- Select the newly created view mode from the select list
- Set any other visibility constrains and save the block


See also
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion