Hi, I’d like to use the twig engine in our custom emails. Specifically, where a slot has no content that slot and its corresponding area (
<?php $view['slots']->output('content'); ?> |
Hi, I’d like to use the twig engine in our custom emails. Specifically, where a slot has no content that slot and its corresponding area (
<?php $view['slots']->output('content'); ?> |
Hi, I’d like to use the twig engine in our custom emails. Specifically, where a slot has no content that slot and its corresponding area (
No sorry I didn’t but that page link is very helpful. I’m beginning to understand it better. Thank you.
Question, what are the ‘page_title’, ‘top1_title’ elements? Is this an array referencing other slot titles? If so, can I do this:
[code]{% if slotHasContent([‘top1’]) %}
If not what do they actually reference?
Forgive me in advance for being a script-kitty and not a full programmer.
Thanks. I’ll give it a try.
No I’m sorry to say this code doesn’t work. It displays as text in the delivered email. I’m running Mautic 1.3.1. Is there something else I should have included/activated for this code to process? It looks like it’s not processing.
{% if slotHasContent(['sub-title']) %}
<!--slogan-->
<tr>
<td align="center" style="font-family: 'Open Sans', Arial, sans-serif; color:#898989; font-size:12px;line-height: 28px; font-style:italic;"><?php $view['slots']->output('sub-title'); ?></td>
</tr>
<!--end slogan-->
{% endif %}