{"id":6299,"date":"2022-03-29T17:05:07","date_gmt":"2022-03-29T15:05:07","guid":{"rendered":"https:\/\/aivie.ch\/faq\/how-do-i-create-dynamic-content-in-mautic\/"},"modified":"2026-07-16T10:39:29","modified_gmt":"2026-07-16T08:39:29","slug":"how-do-i-create-dynamic-content-in-mautic","status":"publish","type":"faq","link":"https:\/\/aivie.ch\/en\/faq\/how-do-i-create-dynamic-content-in-mautic\/","title":{"rendered":"How do I use reusable dynamic content in Aivie?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">With reusable dynamic content, you can create content once and then reuse it in different emails. Both static content and dynamic content. <\/p>\n\n<!--more-->\n\n<h2 class=\"wp-block-heading\">How can I create dynamic content?<\/h2>\n\n<p class=\"wp-block-paragraph\">You can use the power of <a href=\"https:\/\/twig.symfony.com\/doc\/3.x\/templates.html#control-structure\" target=\"_blank\" rel=\"noopener\">TWIG<\/a> here with a few exceptions. Here you can find all the options for <a href=\"https:\/\/aivie.ch\/en\/faq\/which-twig-functions-and-filters-does-aivie-support\/\">TWIG in Aivie<\/a>. <\/p>\n\n<p class=\"wp-block-paragraph\">Here we show you some examples:<\/p>\n\n<h3 class=\"wp-block-heading\">Formulate the address differently according to gender<\/h3>\n\n<pre class=\"wp-block-code\"><code>&lt;!--{% if contactfield.gender == 'Female' %}--&gt;\nSehr geehrte Frau {{contactfield.lastname}}\n&lt;!--{% elseif contactfield.gender == 'Male' %}--&gt;\nSehr geehrter Herr {{contactfield.lastname}}\n&lt;!--{% else %}\nGuten Tag {{contactfield.firstname}} {{contactfield.lastname}}\n&lt;!--{% endif %}--&gt;\n<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\">Display different content depending on the segment<\/h3>\n\n<pre class=\"wp-block-code\"><code>&lt;!-- {% if 'Interested in A' in contactfield.segments %} --&gt;\n&lt;a href=\"#\"&gt;Link A&lt;\/a&gt;\n&lt;!-- {% elseif 'Interested in B' in contactfield.segments %} --&gt;\n&lt;a href=\"#\"&gt;Link B&lt;\/a&gt;\n&lt;!-- {% else %} --&gt;\n&lt;a href=\"#\"&gt;Link default&lt;\/a&gt;\n&lt;!-- {% endif %} --&gt;<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\">Display different content depending on the tags assigned<\/h3>\n\n<pre class=\"wp-block-code\"><code>&lt;!--{% if 'verified-email' in contactfield.tags %}--&gt;\nYou are verified\n&lt;!--{% else %}--&gt;\nYou need to verify\n&lt;!--{% endif %}--&gt;<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">How can I use dynamic content in emails?<\/h2>\n\n<p class=\"wp-block-paragraph\">You can then use this <a href=\"https:\/\/aivie.ch\/en\/faq\/how-do-i-use-dynamic-content-reusable-content\/\" data-type=\"link\" data-id=\"https:\/\/aivie.ch\/faq\/wie-verwende-ich-dynamische-inhalte-reusable-content\/\">dynamic content directly in the email builder<\/a>. Simply drag and drop the block onto the canvas and select the appropriate element. <\/p>\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With reusable dynamic content, you can create content once and then reuse it in different emails. Both static content and dynamic content.<\/p>\n","protected":false},"featured_media":0,"template":"","categories":[],"tags":[],"FaqCategories":[281],"FaqTags":[312,313],"class_list":["post-6299","faq","type-faq","status-publish","hentry","FaqCategories-emails","FaqTags-dynamic-contents","FaqTags-reusable-content-en"],"acf":[],"featured_image_urls_v2":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","post-thumbnail":"","aiv_480w":"","woocommerce_thumbnail":"","woocommerce_single":"","woocommerce_gallery_thumbnail":""},"post_excerpt_stackable_v2":"<p>With reusable dynamic content, you can create content once and then reuse it in different emails. Both static content and dynamic content. How can I create dynamic content? You can use the power of TWIG here with a few exceptions. Here you can find all the options for TWIG in Aivie. Here we show you some examples: Formulate the address differently according to gender &lt;!&#8211;{% if contactfield.gender == &#8216;Female&#8217; %}&#8211;&gt; Sehr geehrte Frau {{contactfield.lastname}} &lt;!&#8211;{% elseif contactfield.gender == &#8216;Male&#8217; %}&#8211;&gt; Sehr geehrter Herr {{contactfield.lastname}} &lt;!&#8211;{% else %} Guten Tag {{contactfield.firstname}} {{contactfield.lastname}} &lt;!&#8211;{% endif %}&#8211;&gt; Display different content depending on the&hellip;<\/p>\n","category_list_v2":"Uncategorized","author_info_v2":{"name":"","url":""},"comments_num_v2":"0 comments","_links":{"self":[{"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/faq\/6299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/types\/faq"}],"version-history":[{"count":5,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/faq\/6299\/revisions"}],"predecessor-version":[{"id":30546,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/faq\/6299\/revisions\/30546"}],"wp:attachment":[{"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/media?parent=6299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/categories?post=6299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/tags?post=6299"},{"taxonomy":"FaqCategories","embeddable":true,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/FaqCategories?post=6299"},{"taxonomy":"FaqTags","embeddable":true,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/FaqTags?post=6299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}