Enables the Smarty templating engine in Mosaico and allows you to use smarty tokens/logic for mosaico mailings as well as the standard CiviCRM tokens.
The extension is licensed under AGPL-3.0.
- PHP v7.2+
- CiviCRM 5.28+
- CiviCRM Mosaico 2.5+
- FlexMailer must be enabled (required for Mosaico). To work for "traditional/legacy" mailings you must set FlexMailer
Traditional Mailing Handler
to "Flexmailer pipeline".
See: https://docs.civicrm.org/sysadmin/en/latest/customize/extensions/#installing-a-new-extension
Install and enable.
Add the following to a mosaico text block:
Token: {contact.display_name}
Add the following to a mosaico text block:
Smarty: {if $contact}Welcome {$contact.display_name}{/if}
This extension is supported and maintained with the help and support of the CiviCRM community by:
We offer paid support and development as well as a troubleshooting/investigation service.