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 (Moderator: Dave Greenberg) »
  • A list of smarty variables?
Pages: [1]

Author Topic: A list of smarty variables?  (Read 671 times)

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
A list of smarty variables?
October 22, 2012, 03:34:57 pm
Is there a list somewhere of the smarty variables that are readily available to each of the system message templates?

I have looked but can't find it.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: A list of smarty variables?
October 22, 2012, 04:42:46 pm
I don't there there is  ???. If you have a test environment to work with - you can discover them by adding this "token" somewhere in the message template:

{debug}

Ideally, you can also update the test environment's civicrm.settings.php file to output emails to disk (instead of actually emailing them). That makes it easy to look at the output from the debug (which will be a list of all available smarty variables).

To do that, uncomment this setting and set it to 1:
Code: [Select]
define( 'CIVICRM_MAIL_LOG', '1' );

Hopefully you can the add this reference to the wiki :-)
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • A list of smarty variables?

This forum was archived on 2017-11-26.