Your software
My Mautic version is: 4.1.1
My PHP version is: 7.4
Your problem
Hey there,
is it possible to use dynamic content in MJML emails, yet?
I tried {dwc=freebie}, {dynamiccontent=freebie} and a RAW/HTML container with
<mj-raw>
<div data-slot="dwc" data-param-slot-name="freebie">
<h1>Dynamic web content for myslot
</h1>
</div>
</mj-raw>
But all three versions didn’t work. The dwc slot freebie is created and tag based. Test user whom I send the mail to had the corresponding tag.
What am I missing? Using the Blank template without MJML I have the Dynamic Content Slot as a building block available (which works as expected).
Yes, it is on the roadmap. We need to make it happen.
Regarding your solution. With the Twig Template plugin you can utilize tags to decide if a piece of content should be displayed in an email or not.
It is super powerful.