Questions tagged [tokens]

Equivalent of mail merge fields. Facilitates to insert information from the database into an email or a letter that is different for every recipient.

Filter by
Sorted by
Tagged with
2
votes
1answer
174 views

How to use Campaign ID (as a token) in Contribution Invoice/Email Receipt Template

We use Campaign ID (renamed using Word Replacer to "Project ID") to categorize different kinds of contributions. Some come in through online contribution pages, and some are entered manually on ...
2
votes
1answer
149 views

Personalised link using checksum tokens leads to empty page

When testing the functionality of checksum tokens for a mailing, the link is properly created according to this wiki entry for profile pages (.../?page=CiviCRM&q=civicrm/profile/edit&reset=1&...
1
vote
0answers
40 views

Missing total amount in receipt after civicrm upgrade 4.5 to 4.6

I have upgrade civicrm 4.5 to 4.6. After that token {$formValues.total_amount|crmMoney:$currency} is not printing the total amount in emails. The template used is one of the System workflow messages ...
0
votes
1answer
172 views

Using a Variable/Token for Config Directories to Get Site Root Path

I am using Drupal 7 with CiviCRM 4.7.12. When setting the Directories for CiviCRM... I know you can use [civicrm.files] and [civicrm.root] to get file system paths. However, I have my extensions, ...
4
votes
1answer
139 views

How do I change my organisation's address in a mailing?

I want to send out a civi mailing relating to a change of office address - the trouble is, the required {domain.address} refers to the old address and I can't see how to change this? Is there a ...
2
votes
1answer
118 views

How do I create a token that automatically gets urls convert to trackable links?

This is kind of the opposite of Integrating CiviMail tracked links with Google Analytics In other words, I'm generating html for civimail using tokens, and the html includes links, but those links ...
1
vote
1answer
36 views

Suspected external REST API not updating Drupal entities

We're trying to push a Civi contact's data into an LDAP data store using the Civi Drupal entity module and the Drupal ldap module. That part works fine. If a user updates their contact card using a ...
2
votes
1answer
182 views

Financial Type on Contributions - Receipt (on-line) template

We would like to add the contribution Financial Type to the Contribution (On-line) receipt template, so we communicate clearly to our donors where their money has gone. (Our Financial Types are named ...
1
vote
1answer
97 views

How to localize opt-out link in mailing

My organisation has members who speak different languages, and we send them emails written in the language they speak. These emails have an opt-out link, generated by the token {action.optOutUrl}. ...
1
vote
2answers
46 views

Where/how to save global variables?

We want to store some global variables for token substitution in civicrm. Think of adding current members of board of managers to letters or other phrases to use in mailings or pdf letters. Example: ...
2
votes
1answer
240 views

Webform submission value token not working

From a webform submission I would like to send an automated email, for example with first name. As per webform token I have included Dear [submission:values:civicrm_1_contact_1_contact_first_name:...
1
vote
0answers
37 views

Extensions not discoverable in Civi 4.7.7

I am recreating a Joomla site (3.5.1) with Civi 4.6.10 and upgrading to civi 4.7.7. I have been unable to install extensions on the new site that were working under 4.6.10. I made sure I had the ...
1
vote
0answers
28 views

Updating message template receipt to include all of the price fields selected in a price set

Our membership form uses a price set with 7 price fields - the "umbrella" membership and then optional extra memberships (sub-memberships for affiliated groups). In the message template used for the ...
2
votes
3answers
123 views

How to include an opt-out link (with token) in a reminder?

I'm new to working with Scheduled Reminders, and am trying to figure out how to include our org's standard forward, opt out and sent-from info in each reminder, as we do with bulk Civi emails. Our ...
1
vote
1answer
71 views

Invoking hook_custom_tokens and hook_custom_tokenValues in Joomla

I have tried, in vain, to invoke hook_civicrm_tokens and hook_civicrm_tokenValues in a Joomla instance in order to add custom tokens (to be specific: relationship information). I created a Joomla ...
2
votes
1answer
72 views

Calling images from a database with custom tokens in mass mailings

I was just wondering whether CiviCRM offers the ability to insert custom images into a mass mailing? So that each person receives a different image pulled from a server? The best described example I ...
3
votes
1answer
156 views

Tokens in civicrm webform - not showing contact

Webform has a browser for 'available tokens'. civicrm-contact appears in it, but none of the tokens seem to work. Is there anything I have to do to enable them ? If I put this in the confirmation ...
3
votes
1answer
133 views

How can I use custom tokens when grouping Thank You letters

Being able to group Thank You Letters by contact is a great feature for both everyday receipts (we have a company that will donate via multiple smaller donations at once) and end of the year receipts. ...
0
votes
2answers
1k views

If statement not working if the smarty variable is not set

I've been trying to figure this out for myself but I am super frustrated at this point! I've got smarty variables and conditional statements working in thank you letters. Well kind of working. ...
2
votes
1answer
70 views

Can a message template replace tokens with appropriate translations?

I see the option to set a contact's Preferred Language, and I have set up my test system with French and English. If I make French the default for the whole system, when I edit the demographics of a ...
4
votes
3answers
194 views

Is there a token for contribution type?

There seems to be tokens for all sorts of contribution things but not for the financial type. Maybe I'm missing it somewhere. We're doing tax letters and the type ends up being the fund the people ...
2
votes
2answers
52 views

Creating your own tokens page content gone

Has anyone else noticed the content of this post no longer shows? https://civicrm.org/blogs/colemanw/create-your-own-tokens-fun-and-profit I'm trying to write a token to use the contribution note as ...
4
votes
4answers
533 views

Today's-Date token for PDF

How can I automatically display today's date in a pdf or email. I tried the "thank you date" token but the date format is 12-31-15 12:30. I need December 31, 2015... I tried plugging in this {$...
2
votes
3answers
53 views

Inserting details of another contact as tokens into an email

I'm trying to set up a template to be sent to one contact. It includes tokens that are specific details of a second contact. How do I specify the contact whose details I am trying to insert through ...
3
votes
1answer
139 views

Soft credit / honoree info in a token for Thank You letters?

I have hunted and not found anything so I am assuming that this does not exist -- but thought I'd ask just in case. I'd like to be able to reference the soft credit / honoree information in Thank You ...
3
votes
3answers
227 views

Address line blank in pdf letter

When adding all of the address fields in a PDF letter i am getting a blank line for supplemental address line 1 if that user does not have that field populated. Is there any way to avoid having a ...
1
vote
1answer
44 views

Newsletter sign up tokens on Donation Form Error

We are having an issue passing a check-sum from a donation and membership sign up form along with a token to sign up to join a mailing list. We're implementing CiviCRM on a WordPress platform. The ...
1
vote
1answer
123 views

Is 'insert tokens' broken for TinyMCE when creating templates

Have shown this to be the case on 2 sites. First site reported the problem and were using TinyMCE. Second site was using CKEditor had no such problem. I then set their wysiwyg to TinyMCE and bingo ...
3
votes
1answer
265 views

Event Time Zone

My org has events that are often hosted online and participants who register to attend these events live all over the United States. When we create events we make sure to list the timezone in the "...
0
votes
0answers
182 views

CiviMail not recognizing Tokens

After upgrading to civi 4.4.19 Civi doesn't recognize built in tokens. The upgrade was smooth with no errors reported. Symptoms are as follows: (1) If {domain.address} and {action.optOutUrl} are in ...
4
votes
2answers
139 views

Removing Carriage returns after a blank address field?

We have an address block on some pdf templates in CiviCRM some contacts have address2 or address3 lines while other do not. Using the normal tokens we end up getting blank lines and the address block ...
5
votes
3answers
214 views

Is there a token for base url?

We are often caught by having links in Message Templates that work on live, but then incorrectly take us to the live site when testing on dev - which can result in confusion or worse, errors or ...
1
vote
1answer
35 views

Social Media: In receipts, {$url} incorrect from SocialNetwork.tpl, SEF URL, missing buttons

I have done a search here, bug reporting and general web search to no avail. Platform: CiviCRM 4.6.8 on J!3.4.4 Problem: In CiviContribute, seems in both the receipts, webpage and email confirmation,...
2
votes
3answers
66 views

Additional info required on mail tokens

Was wondering if anyone could help. We need some mail tokens adding for membership details and event details so we can send out mass mails with personalised information in. This isn't in civicrm as ...
2
votes
2answers
46 views

Token for different content?

I have created a template that I am going to send to a group of people. Depending on a certain value (in this case a custom field), I want to use a different picture. Today I create four different ...
0
votes
1answer
93 views

Token for custom field returns the token but not the Values. How to fix it?

when I Insert a token of a custom field to print a pdf letter all built-in token seems working but not the custom ones, no value works, regardless of the number I put in the token. Do you know where ...
1
vote
1answer
38 views

Contact.url token is not a hyperlink

When I send a bulk mailing I use the {contact.url} token, when the email comes through though the url is not a hyperlink. Is there a way to amend this?
2
votes
1answer
178 views

A list of all available tokens?

Is there a way to display a list of all available tokens on the system (other than scrolling through the dropdown)? Our donor intake person would like to see what's available in a readable way.
1
vote
1answer
56 views

Can Honoree type and name be inserted into the Contribution email receipt?

I feel like this might exist but I can't find it: What's the best way to insert honoree information in a thank-you letter to a donor? Especially for batch thank you letters.
0
votes
1answer
119 views

Checksum to edit profile not working?

I've been trying to test using checksums to access pre-filled Profiles, eg: /civicrm/profile/edit?gid=1&cid=12&cs=12f12df65c25b4b31afb11726af4d5ca_1438265969_168 However it does not seem to ...
1
vote
1answer
61 views

Why after importing contact records were Addressee field values set to “Customized” for records where Custom Addressee had a null value?

I imported a large group of organisations into a sub-org group "Media". Some orgs had a specific generic addressee (ie, Editor) which I imported into the Custom Addressee field. After import I ...
1
vote
0answers
84 views

Tokens not entered when using default Drupal CKEditor (with module Wysiwyg)

This question was already in the old forum. But no answers and I have the problem. Set up details: Drupal 7.latest and civicrm 4.6.2 series Drupal CKEditor is installed in a 'libraries' subdirectory ...
5
votes
2answers
302 views

Tokens in greetings not replaced

I implemented miscellaneous custom tokens and have been using them successfully in mailings and pdf generation. But in context of greetings I came across some weird misbehaviour. I tested by ...
3
votes
1answer
254 views

Can tokenValue hooks be used in scheduled reminder emails?

I have the same problem as at http://forum.civicrm.org/index.php/topic,32608 I have created a tokenValues hook to fetch the value of a field from a multi-record custom field set. I have the token ...
1
vote
1answer
79 views

Add Membership Token to PDF Template Joomla

I have been banging my head on this for a few days. I created a PDF Template for our members so I can run a search of members in Expired or Grace, then PDF a letter reminding them to pay their ...
4
votes
2answers
175 views

How to include a token in a view?

The CiviCRM Views integration (Drupal) provides a way to create a View using data from Civi fields. Is there a way to include the output from a Civi token in the View? The use case is that I have a ...
3
votes
2answers
58 views

Is there a bug when placing a token inside quotation marks in CiviMail 4.6.2+?

I have a mailing template with this snippet: Trouble seeing this email? <a href="{mailing.viewUrl}">Read in your browser</a>. In previous versions of CiviCRM, the token would render ...
4
votes
2answers
200 views

Tokens for Custom Field Set with Multiple Records

I'm looking to print / email groups of contacts with a list of their accreditations which we've stored in a custom field set with multiple records. How do we get that to appear on emails & ...
3
votes
3answers
276 views

Where / how is the {domain} token formatted?

I am required to use the {domain} token for mass mailing, but it is formatted with line breaks .. can I modify that formatting ?
1
vote
1answer
137 views

Can I use membership information in a mail?

We are using Memberships including some custom fields to save additional information (e.g. the name of a specific beneficiary supported through that individual membership). Mailings through CiviCRM ...