7 votes

How can I see the available tokens for message templates?

Insert {debug} into a message template then perform the relevant action (ie make an online contribution if you modified Contributions - Receipt (on-line)). The email sent will contain a list of all ...
user avatar
  • 3,440
5 votes

Error when printing PDF letter or mailing label from search results list

With your first error, the issue is with TCPDF, the standard PDF library that CiviCRM ships with. TCPDF isn't very efficient, and takes a lot of memory when you try to generate a large PDF. ...
user avatar
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 ...
user avatar
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 ...
user avatar
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/...
user avatar
  • 17.9k
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 ...
user avatar
  • 1,012
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 ...
user avatar
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"-...
user avatar
  • 3,504
4 votes
Accepted

How can I see the available tokens for message templates?

use {debug output=html} To have a nice formatting in html email
user avatar
  • 128
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 ...
user avatar
4 votes
Accepted

PCP confirmation email doen't contain user-login details. [ Drupal ]

Site had a configuration Who can register accounts? as administration only because of which I was not getting the screen where the user will be created before you fill PCP informations. After I ...
user avatar
  • 429
4 votes
Accepted

CiviCRM Message Templates link changed, cannot find

CiviCRM 4.6 has a new permission to edit templates separate from "Administer CiviCRM", and I'm almost certain the issue you're having is that you need to add permissions post-upgrade. From your URL, ...
user avatar
4 votes

How can I see the available tokens for message templates?

You can insert the {debug} Smarty token into your template: http://forum.civicrm.org/index.php/topic,14845.msg63471.html#msg63471
user avatar
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 ...
user avatar
  • 1,116
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 ...
user avatar
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....
user avatar
  • 491
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 ...
user avatar
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 ...
user avatar
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: ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 867
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.
user avatar
3 votes

How do I find a message template?

Check if you have any Scheduled Reminders based on Memberships and ensure your 'lifetime' Membership Type is excluded from that.
user avatar
  • 27.1k
3 votes

Error when printing PDF letter or mailing label from search results list

Regarding your second issue: When a PDF is generated, CiviCRM can NOT put anything else on your screen before sending the PDF header. However, you're getting a "Strict Standards" notice - which ...
user avatar
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 = ...
user avatar
  • 2,345
3 votes

Coding of civimail header body and footer - best practice

I've been using something like this by adding HTML to the CiviMail Header and Footer options. https://gist.github.com/danaskallman/57616e7d17cc4c4f5050 https://gist.github.com/danaskallman/...
user avatar
  • 472
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 ...
user avatar
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 - ...
user avatar
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='...
user avatar
  • 2,301
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. ...
user avatar
  • 133

Only top scored, non community-wiki answers of a minimum length are eligible