Skip to content

Block (Admin Only)#

The block component is used by site admins to make views available to the block paragraph type, to add Components JS blocks, or to add other custom blocks to pages on the site.

Make a Custom Block Available to the Block Paragraph#

Before you can add a custom block to content, it has to be made available to the Block paragraph type (component). Important! You must do this step in your local development environment, export code, commit, and deploy to live.

  1. Create your custom block in views, Components JS, or elsewhere in Drupal.

  2. Go to Structure > Paragraph Types > Block > Manage Fields
    block image 1

  3. Click Edit next to the Block Widget field.
    block image 2

  4. Click the checkbox next to the block you need to make available to the block paragraph type.
    block image 3

  5. Save.

Add a Custom Block to Content#

Add any available block to your content.

  1. In your content area, select the block component from the list.
    block image 4

  2. Use the dropdown menu to see the available blocks.
    block image 5

  3. Select the block you want to add to the content area. In this example, we’re adding the Database A-Z block to the databases landing page.
    block image 6

  4. Save.

  5. Review the page and make sure the block is displaying correctly, that any links function, and that the content is displaying as expected.