12
votes
How do contact hashes work, and how do I keep them secure?
My understanding is that Lobo's answer above is slightly misleading (at least if you read it 100% literally--the gist what he is saying is exactly correct, as usual, but the exact terminology may lead ...
- 121
11
votes
Can I put custom field tokens into a message template?
Yes it is possible to include custom contact fields for individuals in messages sent by CiviMail by just selecting the custom field from the list of tokens.
The help on the Insert Token widget for ...
- 6,721
7
votes
How do I change my organisation's address in a mailing?
You can change your organization address by going to
Administer > Communications > Organization Address and contact info.
Alternatively and less recommended,you can disable the check for mandatory ...
- 2,077
7
votes
Feature request: Make Checksum tokens easier to use
These two extensions should assist -
https://civicrm.org/extensions/contact-checksum-ui
https://civicrm.org/extensions/fancy-tokens
The second extension provides tokens for all active contribution ...
- 1,883
6
votes
Accepted
How do I configure the duration of the checksum links?
The setting you're looking for is here: Administer menu > System Settings > Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.)
The second option is "checksum lifespan".
- 37.9k
6
votes
Today's-Date token for PDF
In order to get smarty to work in email templates you need to enable it editing the settings file civicrm.settings.php, as per CiviCRM documentation:
if (!defined('CIVICRM_MAIL_SMARTY')) {
...
- 2,321
6
votes
Accepted
{domain...} tokens not parsed in regular mail?
Domain tokens are not replaced when trying to send email activity for a contact. This seems like a bug in civicrm or wrong documentation. This can be fixed by applying below patch.
diff --git a/CRM/...
6
votes
Is there a list of tokens anywhere?
This is a bit tricky to answer, because there are three different token processors in CiviCRM. The Smarty processor, the legacy token processor, and the new Civi\TokenProcessor processor.
Legacy ...
- 37.9k
6
votes
Accepted
Message template token no longer available / relevant
Yes its safe to remove, so replace
{if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
with
{!$is_pay_later AND $amount GT 0}
5
votes
Accepted
How can I reference a contact's Drupal/Wordpress/Joomla account with a CiviMail token?
Option 1: Use the CiviToken extension [recommended, CMS independent]:
Fuzion's CiviToken extension provides {user.name} and {user.id} tokens by default. (Pro tip: this module also makes it easy to ...
- 8,201
5
votes
Accepted
How do contact hashes work, and how do I keep them secure?
Yes contact hashes are regenerated every time they are created. the microtime is embedded in the contact hash.
Contact hashes have a specific life time (by default, this is 7 days). So they are ...
- 3,803
5
votes
Is there a token for base url?
No, there is no token for base URL is available in civicrm. If you want to use base URL in templates, you can try this:
// Declare $config;
$config = & CRM_Core_Config::singleton();
$baseUrl =...
- 483
5
votes
Accepted
Today's-Date token for PDF
I think this would be a custom token to get it in the format that you're looking for, but it wouldn't be too difficult and I am pretty sure you'll be able to find one someone has already written -
...
- 1,489
5
votes
Accepted
Webform submission value token not working
Tapash, I've just tested this myself and I've had success with including the fieldset within the token so that it looks something like the following:
[submission:values:...
- 151
5
votes
Can Legal Name be used as a token?
In order to use legal_name against your message template the best way would be enabling CIVICRM_MAIL_SMARTY to 1 in civicrm_setting.php
By doing this you can access {contact.legal_name} in your ...
- 3,169
5
votes
Is it possible to use CiviCRM tokens in external services?
Simple answer: No. Those tokens are expanded into text strings by CiviMail for each recipient and your third party service is not going to know what values to substitute for those.
Complex answer: ...
- 12.4k
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/...
- 20.2k
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 ...
- 1,057
5
votes
Accepted
Token for {$totalAmount|crmMoney}?
There are multiple "token" systems in CiviCRM depending on your context.
{$totalAmount|crmMoney} is a Smarty token, which only works in Smarty emails. System Workflow messages are Smarty, ...
- 37.9k
5
votes
Accepted
Checksum expiration
I found it myself:
/civicrm/admin/setting/misc?reset=1
Default setting is 7 days.
- 2,241
5
votes
What link/token would work in a Scheduled (renewal) Reminder that would allow a person with an existing recurring payment to click and cancel it
Technically it's possible to do using a token processor hook. Each membership is linked to contribution recur via civicrm_membership.contribution_recur_id so if you are using Membership entity for ...
5
votes
How to create a "token" from a custom field
This happens automatically - but you can't use an event token unless you're sending an email that is tied directly to the event. E.g. you can't use CiviMail, because CiviMail doesn't know which event ...
- 37.9k
4
votes
Can I add non-contact fields (such as membership, contribution, relationship, etc) in bulk emails?
The short answer is "not without extensions". It would be difficult, for instance, to say exactly which of a contact's many contributions you want to pull data from.
That said, other users have ...
- 37.9k
4
votes
Can I use membership information in a mail?
Eileen did an extension that added some membership tokens to deal with contacts having multiple membership and which do work from 'contact'
{latestcurrentmembership.end_date}
{...
- 27.6k
4
votes
Address line blank in pdf letter
The issue isn't 100% clear because your formatting doesn't allow me to perfectly understand which tokens have a line break after them and which have a space - but I'm pretty sure I know what's going ...
- 37.9k
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 ...
- 8,201
4
votes
Today's-Date token for PDF
You could create a custom token and add the format you want. An example of such a token in a custom format (a long with lots of other tokens) you could find in the extension no.maf.tokens This ...
- 3,635
4
votes
Is there a token for contribution type?
I thought I had tried the obvious but must have had a typo. It is there but it isn't listed in the list of tokens. It's {contribution.financial_type}. Should it be listed? If so, it looks like a ...
- 2,923
4
votes
Accepted
Custom Email Greeting token doesn't work
Any chance you don't have smarty enabled for civiMail so your capture-assigns and ifs aren't working in the mail?
Try checking your civicrm.settings.php file and look for the line
define( '...
- 1,489
4
votes
Fuzion tokens for membership start and end date
The issue is that a contact can have multiple memberships, so you can't use membership tokens unless you display your search results as memberships.
In Advanced Search, do your search again, but ...
- 37.9k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tokens × 192civimail × 51
message-templates × 18
email × 15
custom-fields × 13
civievent × 12
civimember × 11
wordpress × 10
civicontribute × 10
drupal × 9
smarty × 8
scheduled-reminders × 7
checksum × 7
webform-civicrm × 6
civirules × 6
receipts × 6
mosaico × 5
contacts × 4
joomla × 4
contributions × 4
civicase × 4
mailing × 4
hooks × 4
templates × 4
profile × 3