CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Tokens in User-Driven Message Templates
Pages: [1]

Author Topic: Tokens in User-Driven Message Templates  (Read 936 times)

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Tokens in User-Driven Message Templates
August 05, 2011, 08:01:06 am
Hello,

I'm trying to setup membership renewal reminders and have inserted some tokens into the user-driven message template and the only ones that seem to be working are contact tokens.

I've tried inserting {domain.name} and the result is blank. (And yes, I do have a domain name specified in the configuration)

I've tried inserting a membership end date in multiple ways: {$memberParams.end_date}, {memberParams.end_date}, $memberParams.end_date. And have set

define( 'CIVICRM_MAIL_SMARTY', 1 );

in the civicrm.settings.php file. The result is either the string itself or blank. (And yes, the individual I sent the email to has a membership)

Are these tokens not available to user-driven templates?


CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Tokens in User-Driven Message Templates
August 08, 2011, 03:33:50 pm
I don't believe that they are.  Although I would love to be proven wrong, as this feature would be nice.  My research hasn't turned up anything about membership tokens (end date, membership type, membership price, etc).

I recently sidestepped this issue by including the verbiage "your membership will expire in 30 days" rather than "your membership will expire on Sept 8th".  It's a cheap solution.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Tokens in User-Driven Message Templates

This forum was archived on 2017-11-26.