Version:
Cohesiondx.com

Are you looking for the latest documentation?

Documentation for Acquia Cohesion V6.0 onwards has moved to https://cohesiondocs.acquia.com

    Managing blocks in regions

    You can only use Drupal blocks on your website when they have been placed within a Drupal region in your website theme. This is by design within Drupal core so that administrators can add and remove blocks from regions to change the display of blocks on their website.

    When using DX8 to place Drupal blocks on the Layout canvas using the Block element, you will not need to use Drupal's system for placing Blocks as the Layout canvas will let you place the Block where you want. However, Drupal will not make the Block available to the DX8 Block element unless it has been placed within a Drupal region in Structure > Block layout.

    Using the block element on a new website

    When using DX8 to create a new website and using the DX8 minimal theme you can place blocks within a region called DX8 hidden region. This region is not rendered to your website so you can place blocks within it to make them available to the Block element. To black block within it, navigate to Structure > Block layout and drag your blocks into the DX8 hidden region.

    Using the block element on an existing website

    When using DX8 on an existing website with its own theme, blocks placed within regions will probably show on the website because the templates have likely been created to display blocks placed within regions. This may cause you a problem if you want to make a Block available to DX8's Layout canvas but not display it in a region.

    The simplest solution to this issue is to add an additional region to your theme which doesn't render the content. For example, the DX8 minimal theme includes a region called 'DX8 hidden region'. This simply exists in the theme so that Blocks can be placed within it in Structure > Block layout and be made available to the Block element. The only difference with it to other regions is that it doesn't render anything.

    For more information about adding regions to your theme, see https://www.drupal.org/docs/8/theming-drupal-8/adding-regions-to-a-theme

    DX8 knowledge base icon

    Frequently asked questions

    Get instant answers to common questions. Available online 24/7.

    Find answers

    Raise a ticket icon

    Raise a support ticket

    To raise a ticket, sign into Acquia Cloud and select Help in the top menu.

    Raise support ticket

    Acquia

    Copyright © 2020 Acquia, Inc. All Rights Reserved. Drupal is a registered trademark of Dries Buytaert.