Add fields to a block [D7]

Last updated on
30 April 2025

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

This documentation is written for the 7.x-2.x version of Display Suite.

Display Suite allows you to put certain fields inside a region that will be rendered as a block. This can then be managed via the Drupal core block administration.

Notes

  • Make sure not to try this on de default field display settings page. This only works for custom view modes. Not on ie admin/structure/types/manage/article/display but on admin/structure/types/manage/article/display/full
  • Preprocess fields will not be visible.

Configure

To add fields to a block:

  • Enable the sub module Display Suite Extras at Administration > Modules (admin/modules)
  • Go to Administration > Structure > Display Suite and click the secondary tab "Extras" (admin/structure/ds/list/extras)
  • Select the vertical tab "Others"
  • Check "Region to block"
  • Click "Save configuration"
  • Go to Administration > Structure > Display Suite (admin/structure/ds/layout) and choose "manage display” for the desired content type (e.g., "Article").
  • Select a custom view mode (e.g., "Compact teaser")
  • Ensure a layout is selected in the vertical tab "Layout for … in ..."
  • Click "Save"
  • Choose the vertical tab "Block regions"
  • Enter a name for the region that will be rendered as a block
  • Click "Save"

The region is now available in the manage display screen and you can assign fields to it.

The block is now available via Administration > Structure > Blocks (admin/structure/ds/blocks) where you can enable it.

Help improve this page

Page status: Not set

You can: