Repeatable or Variable Content Blocks

If you code your own template, use our Template Language to add content blocks to your campaign. These blocks help you to create a customized design that can be edited in the Campaign Builder.

In this article, you'll learn how to use content blocks created with our Template Language.

Before You Start

Repeat or Delete a Content Block

The repeat and delete controls for each custom-coded content block show when hovering over the block. Click the plus (+) icon to add another content block and click the minus (-) icon to delete a block.

When you repeat or add a section, we'll replicate the default text and placeholder image each time. Images and content you've added won't be replicated.

If you delete a repeatable section, whatever content you entered into that section will also be deleted. The delete control will apply to entire content blocks, text and images. If you want to delete just the image portion of the content block, click on the remove button in the image area.

To remove the content from the text portion of the block, click the edit button to bring up the Editable Region window and delete all of the text.

When you repeat a content block, the original block can't be removed until the repeated section is deleted.

Use Variable Content Blocks

Variable content blocks allow you to switch between a number of different content structures within your email and are noted with plus and minus signs so you can repeat and delete them. They also include a drop-down menu that lets you to choose which type of content block to display.

Variable block

From the drop-down menu, choose the content structure you'd like to work with.

Reposition Content Block

Repeatable and variable content blocks can be moved vertically within a template. After you repeat a content block, you'll see arrows in the top-left corner that you can click to drag the block up or down.

Drag-and-drop block

When you click on the arrow to move the block, you'll see a blue bar that can be dragged and positioned where you'd like the content block to move.

When dragging and dropping content blocks in your template, note that you can only drag and drop content blocks within the block enclosing it. For example, it wouldn't be possible to move a right column into the left column or above the body content area.

Hide or Show Content Block

Just like the repeat and delete controls, the hide and show controls are located below each custom-coded content block. Click the slashed eye icon to hide a content block.

Show or hide block

The hide control applies to the entire content block, both image and text. When hiding content blocks, the hidden section won't disappear on the editor screen but will appear as grayed out instead.

Hidden block

You can preview and verify that the block has been hidden successfully by clicking the Preview and Test option in the Campaign Builder and choosing Enter Preview Mode. When you send your campaign, the section you've hidden won't appear in your email.

If you've changed your mind and want to re-add the content block you've hidden, click the eye icon on the faded block and watch it reappear.

Was this article helpful?
Anything else we can do to improve our site?

Technical Support