Smarty – kapn*net https://kapn.net Mon, 25 Mar 2024 13:28:34 +0000 en-US hourly 1 https://kapn.net/wp-content/uploads/2023/12/cropped-kapn-net-star-whiteBG-32x32.png Smarty – kapn*net https://kapn.net 32 32 CiviCRM with Smarty https://kapn.net/support/civicrm-with-smarty/ https://kapn.net/support/civicrm-with-smarty/#respond Mon, 21 Dec 2020 17:23:20 +0000 https://kapn.net/?post_type=epkb_post_type_1&p=527 […]]]> CiviCRM has Smarty support which enables useful logic for contribution emails and similar things, but it is not enabled for email by default. You must edit /wp-content/uploads/civicrm/civicrm.settings.php and enable Smarty:

/**
 * Enable this constant if you want to send your email
 * through the smarty templating engine (allows you to do 
 * conditional and more complex logic)
 **/
if (!defined('CIVICRM_MAIL_SMARTY')) {
  define( 'CIVICRM_MAIL_SMARTY', 1 );
}

In addition, you should disable entities in CK editor. You can do that at Administer->Customize Data & Screens->Display Preferences. Then scroll down and click the “Configure CKEditor” button.

On the subsequent page, you will need to set entities to false.

]]>
https://kapn.net/support/civicrm-with-smarty/feed/ 0