Create a content block
A content block is a reusable piece of an email that goes into a template’s slot: an ad, a product card, a featured article, a footer banner. One block can be used in many templates, and one template can use many blocks.
Blocks are shared across your workspace. Slot keys decide which blocks can go in which slot, and whoever sends picks from what’s allowed. See Slots.
In this section:
- Compose an email from a template — for whoever picks blocks and sends.
- Build a template — templates decide where blocks can go.
- Create a content block (this page) — the markup, slot keys, and block fields.
Before you begin#
- Some comfort with MJML, the same as for templates.
- A template with a slot to fill, or at least an agreement on the slot keys you’ll use. A block whose keys match no slot can’t be picked anywhere.
- For the API, keys need the
templates:writescope to create or change blocks. See Create & use API keys.
Create a block#
In the sidebar, open Content→Blocks, then click New Block.
Three fields identify it:
- Block Name — what people see when they choose a block, such as Webinar banner.
- Slot Keys — which slots this block can go in. A slot takes the block when its Accepts list names any one of these keys. Keys use lowercase letters, numbers, dashes, and underscores.
- Slug — the short identifier for the block in API requests and files (
block_id: webinar-banner). Leave it empty and it’s made from the name when you save.
Slot keys and tags are different things#
Both look like chips in the same editor, but they do unrelated jobs:
| What it controls | |
|---|---|
| Slot Keys | Where the block is allowed. A slot’s Accepts list is checked against these. Get them wrong and the block never appears for that slot. |
| Tags (in the sidebar) | Finding the block later, and nothing else. Search the Blocks list by tag. Tags play no part in which slots take the block. |
The difference matters in one more place: a Rotate slot’s Narrow by slot key works on slot keys, not tags. To build a rotating pool, give those blocks a shared slot key.
Write the block#
The content panel has the same three tabs as a template: MJML, Preview, and Plain text.
Write one or more <mj-section> elements, with no <mjml> wrapper, since the block sits inside the template. If you paste a full MJML document, the wrapper is trimmed off when you save.
Preview is a layout check. {{ param.* }} placeholders show as plain text, because a block’s values are filled in when someone picks it for a slot.
A block can read snippets, such as {{ snippets.webinar.title }}. That suits a section every email repeats, like a webinar promo: change the snippet once and every email shows the new one from its next send, with no edit to the block.
Plain text is optional on blocks. Leave it empty for purely visual pieces, like a button, an image, or a divider. Fill it in for anything with meaning, so people with text-only email apps get it too.
Set up block fields#
Blocks can have their own fields, set up on the Schema tab the same way as a template’s, including groups (+ Group) and repeating sections (+ Section). When someone picks the block for a slot, its fields appear under the picker for them to fill in. See Parameters.
The linter under the content panel works here too, with Declare this → and Declare all. A field named after a merge tag gets the same warning as in a template.
A block’s repeating sections can’t be filled in from the slot yet, so their rows come through empty. Keep block sections optional, or move the repeating part up to the template.
The template’s values flow in#
A block can use the template’s fields as well as its own. Write {{ param.brand_color }} in a block and it picks up the template’s value, with nothing set up on the block. That’s handy for brand values you don’t want to repeat everywhere. If the block and the template both have a field with that name, the block’s own value wins.
The block’s linter only knows the block’s own fields, so it flags a template field like this as undeclared. The block still saves and works; the warning only means the value comes from the template.
It doesn’t work the other way: a block’s fields belong to that block and the template can’t use them.
Make it available#
Under the content panel, Active — available for use in broadcasts controls whether the block is in use. The Blocks list shows each block as Active or Draft.
To retire a block without deleting it or disturbing the emails that already use it, clear Active. Rotate slots stop choosing it, and it’s no longer offered to API users.
Import and export#
Blocks export to a Markdown file and import back, like templates:
- Import on the Blocks list creates a new block from a Markdown file.
- Export in the editor’s footer downloads the current one as a Markdown file.
The header says kind: block, and slot keys are a comma-separated list:
---
kind: block
name: Webinar banner
slug: webinar-banner
slot_keys: cta, footer_promo
---
## MJML
```html
<mj-section>…</mj-section>
```
## Plain text
```
…
```
## Parameters
```json
[ … ]
```
Blocks have no ## Slots heading, since only templates decide where blocks go. ## Groups and ## Sections headings are accepted. Tags aren’t part of the file.
Change or delete a block#
You can edit a block at any time. When the change reaches an email depends on how the slot was filled:
- One block — the block is built into the email when the draft is saved, so a draft saved earlier keeps the old content until it’s saved again.
- Rotate and By rule — the block is chosen for each recipient as the email sends, so these pick up your edit as it stands when the broadcast goes out.
Broadcasts already sent never change; their content was settled when they went out.
The Usage card in the sidebar shows how many drafts and broadcasts use the block. You can’t delete a block while a draft uses it. To take it out of Rotate slots without breaking anything, clear Active instead.
Active only governs Rotate slots, which pick from active blocks. A By rule slot sends the block it names whether or not it’s active, so to stop one sending a block, pick a different block in that slot.
Duplicate a block#
Duplicate is in the editor’s footer, and in the ⋯ menu on each row of the Blocks list. The copy gets the slot keys, tags, body, fields and plain text, and is named after the original with “(copy)” on the end.
The copy starts inactive. It has the same slot keys, so if it were active it would start appearing wherever the original rotates. Edit it, then tick Active when it’s ready. (A By rule slot names its blocks, so a copy never appears there unless someone picks it.)
Duplicate copies the saved block, so save your changes first. Until you do, the button stays off and says Save first to duplicate.
Undo a change#
Every save keeps the version it replaced. History, at the top of the editor, lists them newest first: the current version on top, then up to 50 earlier ones. Each says when it was saved and how it was replaced: in the app, through the API or an AI app, or by a restore.
- View (the eye) shows that version’s content, read-only.
- Restore puts the block back the way that version had it. The slug stays the same, and so does Active: restoring an old version never switches a block back on. What’s saved now is kept in the history, so a restore can be undone too.
Switching Active on or off isn’t a change to the block’s content, so it doesn’t add a version.
A restore reaches emails the same way an edit does. A broadcast that picks this block with Rotate or By rule sends the restored version from then on, including one that’s already scheduled or sending. RadarSend says so before you confirm.
Common issues#
- The block isn’t offered for a slot. Its slot keys don’t match the slot’s Accepts list.
- A Rotate slot never picks the block. It isn’t Active, or it doesn’t have the slot key the slot is narrowed by.
- “Block not found” on a saved broadcast. The block was deleted, or its slot keys changed so it no longer fits. Whoever’s sending picks again from the slot’s card.
- A name gets a warning. It’s also a merge tag, like
first_nameoremail. The block still saves and works, but a different name keeps{{ param.email }}from being mixed up with the contact’s{{ email }}. - Delete is blocked. A draft still uses the block. Check the Usage card, or clear Active to take it out of Rotate slots instead.
- A By rule slot still sends a block you switched off. That’s expected: Active only applies to Rotate slots. Pick a different block in the slot.
Good to know#
- Blocks are shared across the workspace. No template owns them; anything with matching slot keys is available everywhere.
- Blocks can’t contain slots. Only templates decide where blocks go.
- A rotating ad is several blocks that share a slot key.
- Merge tags work in blocks as they do in templates, using the same contact details, with no setup. Click Open merge tags in the block editor’s sidebar to see them all, along with the block’s own fields and how to write each one.