Reusable Blocks

One of the powerful benefits of using a content management system like Drupal is the ability to reuse the blocks available on the site, but reusing your blocks can mean a couple different possibilities:

Block Reuse via Page Layout

Each time you use Layout Builder to place the block, it creates a duplicate of the block, which allows you to change its region placement.

Create a new block that will appear on one or more pages.

  1. Using the Layout Builder on a page, select Add Block.
  2. In the configuration side bar select Create Content block.
  3. Choose a block type from the list.
  4. Select Create reusable block.
  5. Configure your block content and save the block.
  6. Save layout.
  7. The block will now appear in the Content block section when you want to add it to another page.

create reusable block

Re-use an already configured and populated block.

  1. Using the Layout Builder on a page, select Add Block.
  2. In the configuration side bar expand the Content block section.
  3. Choose your block from the list. Note: If you have a long list, you can use the filter field to help narrow the list.
  4. Save layout.

content block list and filter

Block Reuse via Block Layout

This is ideal if the block will always be re-used in the same region regardless of which page displays it.

You can use the block's Page Visibility section to list all the pages where this block should be used.

configure block visibility

  1. Using the admin menu: select Structure > Block Layout.
  2. Click Place Block in the region you want the block to appear.
  3. Use the Filter to locate your block.
  4. Under Visibility select Pages. You can set visibility on an even more granular level in the Pages section. You can list a single page, several pages, all pages sharing a particular path. Enter ONE page per line. Examples:
    1. single page: /about-us
    2. multiple pages:
      • /about-us

        /contact

        /news

        /staff

    1. all pages in a path: /news/*
  5. Select the visibility option: Show for the listed pages or Hide for the listed pages. You can show the block on the listed page(s) or show the block on everything except the listed page(s).
  6. Click Save block in this window.
  7. Scroll to bottom of the page and click Save blocks.

Related: Learn more about reusable blocks with our tutorial Understanding Blocks.