Blocks are drag and drop components that allow you to build notification content that can be reused across channels.
Courier Content Blocks are responsive and cross-channel by default. Content that you create in one channel is available in the Content Library for use in the other channels you add to a notification.
A few block types, such as Text and Action Blocks, have channel or integration specific options or formatting. In these cases, Courier automatically makes adjustments when you drag the content in from the shared content Library.
All blocks support Message Variables and Filters.
Adding Content Blocks to a Notification
When you create a new Notification in and add channels, you will see the content toolbar. To create a new Content Block, click the block type you wish to add.
Content Block Library
The Block Library holds shared channel content. It will display blocks not in use by the selected channel. If a block is not being used by any channel, it will be marked as Unused. Unused blocks can be deleted by hovering over the block and clicking Remove block.
Filtering Blocks Using Conditions
Blocks can be conditionally hidden using a Filter. You can add a Filter by selecting a block and clicking on the Filter button.
This will present you with a modal where you can specify the conditions in which the block will be hidden or shown.
You can use values passed in the data object or from the merged recipient profile for the property and values.
Each content block has block-specific settings. The available settings are block-dependent but include things like alignment, color, and text formatting.
Removing a Block
Blocks can be removed from a channel by selecting the block and clicking the Remove Block button. This action will send the Block Library.
Read more about the specific block types, their channel availability and behaviors, options, use cases, and best practices: