6
votes
Accepted
How can I see the available tokens for message templates?
use {debug output=html}
To have a nice formatting in html email
5
votes
Accepted
How can I add a banner image in the confirmation email for a particular event?
If you want it in addition to the default/generic banner you can probably add it in at the top of the "Thank you and receipting" section of the event.
If you want to use it in place of the generic ...
5
votes
Accepted
Send different event confirmation emails
Make two different Message Templates yourself and use CiviRules (also requires Email API extension) to send out the correct one based on the Event someone registers for.
If you need payment details ...
5
votes
Do any token extensions provide a token for "age" rather than just DOB?
I don't see any either, but the code to use in such an extension (as either a token or even a smarty modifier) seems pretty straightforward:
https://github.com/civicrm/civicrm-core/blob/5.19.2/CRM/...
5
votes
Accepted
Do any token extensions provide a token for "age" rather than just DOB?
This sounded like a useful feature, so I added Age tokens to Eileen's CiviTokens extension, which seems to be the most widely used extension of its kind. Until a new release comes out, you'll have to ...
4
votes
Accepted
Soft credit / honoree info in a token for Thank You letters?
Here's an attempt to address this with a token that can be used with Fuzion's CiviToken extension. With that extension installed, this token file can be added to a tokens directory in your custom PHP ...
4
votes
Accepted
Allow user to manage mail templates
"edit message templates" is a separate permission in CiviCRM 4.6 (see screenshot below), so you'll get this functionality by upgrading.
Upgrading is also a good idea, since version 4.5 isn't a "Long ...
4
votes
Accepted
Conditional statements in 'manual' emails or thank you letters
Yes, what you are describing is the default setting for CiviCRM.
Only Message Templates and Automated Messages make use of the so called smarty template engine. The smarty template engines makes "if"-...
4
votes
Accepted
Editing Recurring Contributions without user login
I almost have this polished, just one little piece that may be beyond what my pea brain can handle. The short of it is that from the affected contact you need to send an e-mail with tokens. (I've put ...
4
votes
specific confirmation email for an event?
Two options!
Use the text in the Event Config -> Online Registration -> Confirmation Email -> this is Event specific and this text/note will be pasted ahead of the receipt Email - so ahead of what is ...
4
votes
Accepted
Adding custom fonts in mosaico
What worked for me with google-fonts is the following:
After the tag add the include path generated from google-fonts, in this example Modak and Open Sans.
@import url('https://fonts.googleapis....
4
votes
How to check if a contact has an active membership in a smarty template?
Don't think you have a direct variable to use in the template. Worth trying an extension to provide this? It can be done by simply writing something like below in your hook.
function ...
4
votes
How to check if a contact has an active membership in a smarty template?
You can use CiviCRM api through smarty to retrieve if membership is active for a contact. You can achieve this by
Turn on CIVICRM_MAIL_SMARTY (set to TRUE or 1) in civicrm.settings.php
add below api ...
4
votes
How do I get the Name and Address on the Invoice to show up in a Window Envelope?
This requires editing of the Contribution Invoice Receipt - Message Template. End result looks like this:
I'll detail the steps below to get the header part.
The header portion contains two tables: ...
4
votes
Accepted
CKEditor can only edit user driven message templates
Jaap's comment is correct. It's unfortunately not possible to use a WYSIWYG editor on system templates because they're not (just) HTML, but contain Smarty code as well. Not only would Smarty break ...
4
votes
Is it possible to have a user that's only capability is to work with Mosaico. Specifically to Create/modify templates
Unfortunately there is no single Mosaico privilege. You would achieve what you want using a combination of CMS permissions and CiviCRM ACL.
I would do the following:
Create a special account for this ...
4
votes
Accepted
Using fields of referenced contacts in message
Welcome to SE CiviCRM, you can install Fuzion tokens extension. It provides lots of tokens for contacts like relationships, payments etc
Details can be found here.
4
votes
Outdated tokens in use in message template
Yes - those should be removed - they haven't been around for quite a while. We have quite a number of variables being deprecated in upcoming versions I'm afraid as we are replacing them with more ...
3
votes
Accepted
changing or removing the Headers and Footers from mailing templates
Possibly I don't follow the question, but using CiviMail you can avoid the need for using Headers or Footers by ensuring that you include all the required tokens in the template itself. You can also '...
3
votes
Accepted
$participant_status_id shows previous value in email template
This was posted a while ago, but I thought I should post the solution I finally found to the problem (which still exists in my version 4.7.29 install)
The solution to this problem was an API call.
...
3
votes
Accepted
How to include price field data in a Contribution Thank You letter
It doesn't work because $lineItem is not set in the template, you'll have to loop thorough $contribtuions and use the API:
{foreach from=$contributions item=contribution}
{crmAPI var='result' entity='...
3
votes
Can I customize the auto email for event registration?
Registering people manually like in your comment will utilize the "Events - Registration Confirmation and Receipt (off-line)" template.
If people self register online, it will use the "Events - ...
3
votes
Event Time Zone
Tim -
If the timezone for the event is always the one used by your organization (for example, if you're located in New York, it's always ET), you could modify the Smarty template for event receipts ...
3
votes
Removing Carriage returns after a blank address field?
Try to use as below which does the job
<div>{contact.addressee}</div>
<div>{contact.street_address}</div>
<div>{contact.supplemental_address_1}</div>
<div>{...
3
votes
Accepted
Can tokenValue hooks be used in scheduled reminder emails?
I ran into a similar issue of custom tokens not populating for scheduled reminders. The workaround in Brian Shaughnessy's comment on CRM-11153 fixed it for me:
early in tokenValues put:
$single = ...
3
votes
Accepted
Smarty code not working
The problem is that the space in the if-statement is rather than a normal space. For this reason, it's worth writing your smarty statements while viewing the Source code in the template ...
3
votes
Error message in CiviMail: "Mailing has not been saved, Content maybe out of date, please refresh the page and try again"
I puzzled over this problem after a 4.7.28 upgrade for hours before reading this post. Turning off and on Ckeditor worked for me, which gave me another idea.
Since this happened to me with two sites, ...
3
votes
Emails templates in the language of the receiver
I think there is no approach for this on CiviCRM beyond smarty approach. We workaround this by splitting receivers groups by their language preferences and sending their separate mails from templates ...
3
votes
How to include token or variable for Invoice number under the message templates for Memberships - Receipt (on-line)
The tokens you can use in a message template are a bit random, just what the developer added to the template. In this case, the contribution id can be found with {$contributionID}. However, that is ...
3
votes
Accepted
{$contribution_aggregate} not outputting in message template
Look in your civicrm.settings.php (in wp-content/uploads/civicrm). There's a line that says:
define( 'CIVICRM_MAIL_SMARTY', 0 );
Change it to
define( 'CIVICRM_MAIL_SMARTY', 1 );
See https://docs....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
message-templates × 135civimail × 21
tokens × 19
smarty × 19
email × 14
civievent × 13
system-workflow-messages × 13
civicontribute × 12
wordpress × 8
pdf × 7
receipts × 6
civimember × 4
upgrade × 4
permissions × 4
templates × 4
invoice × 4
drupal × 3
custom-fields × 3
contributions × 3
hooks × 3
mosaico × 3
images × 3
civirules × 2
ckeditor × 2
custom-templates × 2