Displaying Content Blocks (formerly Mailing Snippets)
  • 04 Apr 2024
  • 1 minute read
  • Dark
    Light
  • PDF

Displaying Content Blocks (formerly Mailing Snippets)

  • Dark
    Light
  • PDF

Article Summary

📝 Note

The term Content Blocks has replaced what were formerly known as Mailing Snippets in Deliver. The terms are equivalent and may appear in either form throughout Slate documentation. Inbox Snippets are distinct from content blocks.

Content Blocks are used to conditionally insert HTML content into Deliver mailings, decision letters, merge fields on forms, or portals. While translation codes and Liquid markup can also be used to insert conditional content into a message, content blocks enable HTML editing and formatting of the content prior to being merged into the mailing.

Tip

Before adding a content block to a mailing, first create the content block content. For additional information, refer to the Creating Content Blocks Knowledge Base article.

Content blocks are applied to a Deliver mailing by referencing an export present in the recipient list query. In the Deliver mailing that should display the content blocks, navigate to its recipient list by clicking Edit Recipient Lists. Add any exports to be used as merge fields in the mailing, as well as any necessary filters.

To insert a content block as a merge field in a mailing:

  1. In the Edit Message view of the mailing, place the cursor where the content block content should appear. 

  2. Click Merge Field Merge_Field_Button.png in the top row of the WYSIWYG editor.

  3. From the list, select Other.

  4. Enter the following text:

    NAME OF EXPORT | snippet: "KEY OF SNIPPET"

    where NAME OF EXPORT is the name of the export in the recipient list query, and KEY OF SNIPPET is the key of the content block that contains the codes to merge into the message.

  5. Click OK.

To merge in the "Interest" export for the Slate University example, this merge field would look like:

mceclip0.png

In the Slate University example mailing, the message content looks very simple. The content blocks for each corresponding major will merge into the message, however the internal view of the message itself looks like:

mceclip1.png

When previewing this message, the content block merge field dynamically displays the content block corresponding with that record's academic major interest. For instance, this sample record has an academic major interest of Physics, so the content block with the value of "Physics" displays:

mceclip8__7_.png

Tip

Including a default content block with the content block key ensures that every recipient has content merged in from the content block. If no default content block is included, records without data matching one of the content block values will have a blank line where the content block would otherwise appear.


Was this article helpful?