Repeat a list of items in your emails (Repeatable content)

šŸ’” Good to know
Our Repeat blockĀ option is now calledĀ Repeatable content. The Repeatable content option can be used only on Sections.

In this article, we will explain how to use the Repeatable content feature to insert a section of multiple content blocks that will automatically repeat itself and iterate over all content within a single variable.

You can repeat a section in:

  • an email receipt email to display all the items your client has purchased,
  • an abandoned cart emailĀ to display all the items that were left in your client's cart,
  • an RSS campaign to automatically display a series of blog articles,
  • etc.
ā—ļø Important
After adding your placeholders in your email, you must enable the Repeatable content feature for each section that contains a placeholder to ensure that your email template can display multiple products and interpret data sent by your website to Sendinblue.

Before you start

If you are unfamiliar with using transactional parameters to customize emails, check our dedicated article Customize your emails using transactional parametersĀ as a first step.

What is the Repeatable content feature?

To repeat a section, you have two options:

Thanks to the Repeatable content feature, you can add lists of items within a single section in your emails. For example, you can send an abandoned cart email with the list of items left in your client's cart or an order confirmation with all the items your client just bought.

The Repeatable content feature works as follows:

  1. You insert transactional parameters placeholders in an email template, e.g. {{ item.name }} and {{ item.price }}.
  2. The transactional parameters are retrieved through an API call or through an Automation workflow triggered by an event.
  3. The placeholders are dynamically populated with information specific to each recipient during the sending of the transactional email. The pattern will be repeated for as many items as you'd like, and the number of items displayed will adapt in each email.

Here is an example of what repeatable content looks like in the email editor and what it can look like once populated with the data of a recipient who purchased 4 items:Ā 

repeat-block-example.png example-repeat-block-content.png

Step 1: Insert your transactional parameters placeholders

You first need to decide which transactional parameters placeholders you want to add to your email. It can be the name and price of products purchased by your clients, the shipping costs, etc.

To insert your transactional parameters placeholders in your email template:

  1. Drag and drop a Text content block into your email template.
  2. Within the body of the text, type in the transactional parameters placeholders that correspond to the information that you want to mention in your email (name, price, variant, etc.).
    Find the list of predefined transactional parameters placeholders to use in your emails in Customize your emails using transactional parameters.
    text-block.png
šŸ’” Good to know
The placeholders will be replaced by red tags in the email template.

Step 2: Repeat content

1ļøāƒ£ Enable the Repeatable content feature

To enable the Repeatable contentĀ feature in your email template:

  1. Select the section you want to repeat.
    ā—ļø Important
    Ensure you have selected the entire section and not only a content block. To learn more, check our dedicated article Differences between sections and content blocks.
  2. From the side panel, open the Content visibility section and click + Add condition.
    mceclip12.png
    šŸ’” Good to know
    Make sure you hover over the block. If you click inside the block, the Repeat block option won't be available.

2ļøāƒ£ Fill in the repeatable content information

DDE_repeat-block_EN-US.png

  • In the Repeat for field, input the plural version of the first word of your placeholder, e.g. for the section containing the placeholder {{ item.name }} enter items. If you have connected your website to Sendinblue using one of our plugins, the name is items by default.
  • In the Variable alias field, input the first word in your placeholder, e.g. for the section containing {{ item.name }} the variable is item. If you have connected your website to Sendinblue using one of our plugins, the name is item by default.

If you are not using a Sendinblue plugin or if you are using other transactional parameters, you can find this information in your event logs. To learn more on where to find this data, check our dedicated article Customize your emails using transactional parameters.

3ļøāƒ£ (Optional) Set a limit of items

If necessary, you can choose to limit the number of items displayed in the emails sent. To do so, input the number of maximum items you want to display in the Limit field.

dde_repeat-block-limit_EN-US.png

4ļøāƒ£ Save your repeatable content

After filling out the Add repeat conditions pop-up window, click Add conditions to save it.

When the Repeatable content feature is active, the section border turns green and features a repeatĀ icon. Click it if you need to edit your condition:

dde_repeatable-content-saved_EN-US.png

ā© What's next?

šŸ¤” Have a question?

If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.

If youā€™re looking for help with a project using Brevo, we can match you with the right certified Brevo expert partner.

šŸ’¬ Was this article helpful?

4 out of 20 found this helpful