Summit 2022 Feature
Dynamic content blocks enable streamlined creation of personalized content within mailings and form communications. Dynamic content blocks can make full use of merge fields, liquid markup, and even other content blocks!
All content blocks include dynamic content block functionality. Merge fields, liquid markup, and conditional logic can be added to both new and existing content blocks in the WYSIWYG editor or from the source code by manually inserting merge field formatting (such as the {{Person-Preferred}} field).
Important!
To avoid potential errors when placing dynamic content blocks within other dynamic content blocks, refer to the Recursion within Dynamic Content Blocks section of this article.
How to Use Dynamic Content Blocks
All content blocks support dynamic content block functionality. You can edit existing content blocks to contain dynamic content or create and configure new content blocks by following the Knowledge Base article on Creating Content Blocks. You can add liquid markup and merge fields to content blocks when you create them, or you can return and add them later.
Tip
While you should create the content for a content block before adding it to a communication, including merge fields in a dynamic content block requires you to already know the names of the exports used as merge fields. The best way to be sure that your communication exports match the dynamic content block merge fields is to use the default export names when creating the dynamic content block.
For example, use {{Person-First}} instead of {{First-Name}}, since queries built upon Configurable Joins will name the export for a person's first name as "Person First" by default. Any spaces within export names will be automatically converted into hyphens.
Dynamic Content Blocks in Deliver Mailings
To add a dynamic content block to a Deliver Mailing, all exports used within the dynamic content block must be configured within the recipient lists for the mailing.
|
|
|
|
|
Dynamic Content Blocks in Form Communications
To add a dynamic content block to a form communication, all merge fields used within the dynamic content block must be added as exports for the communication.
|
|
|
|
|
Recursion in Dynamic Content Blocks
Dynamic content blocks can call other content blocks. They can also pass exports through into merge fields within those content blocks. Using a content block embedded within another content block allows for simplified generation of personalized content, but also requires creators of dynamic content blocks to understand the limits of recursion.
Content blocks are limited to two levels of recursion, meaning that a content block can contain up to two more content blocks.
First Content Block (Top Level) OK
|
Important!
Placing too many levels of recursion within content blocks will generate the following error when attempting to save the content:
Dynamic Content Block Examples
Mailing with content block: | |
Content block that calls another content block: | |
Successful mailing with both content blocks displayed: |