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) »
  • mail tokens, smarty, workflow templates - documentation what does... do?
Pages: [1]

Author Topic: mail tokens, smarty, workflow templates - documentation what does... do?  (Read 810 times)

questions

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Durpal, 7
  • MySQL version: 5.1
  • PHP version: 5.3
mail tokens, smarty, workflow templates - documentation what does... do?
October 31, 2011, 12:38:26 pm
I'm looking at creating a custom contribution pdf letter/email so I since I code mostly by example I looked at the customized workflow templates for contribution receipt.

It has a bunch of things I'm not sure about and I can't seem to find anything in the documentation though maybe I'm looking in the wrong place.  So...

1.  What does {ts}some text{/ts} do?
2.  I assume things like {$formValues.contributionType_name} are tokens.  Does it take this value from, in this case, the resulting form from find contributions? 
3.  In {$formValues.total_amount|crmMoney:$currency} what does the crmMoney:$currency do?

Is there documentation on this stuff?

Thanks.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: mail tokens, smarty, workflow templates - documentation what does... do?
October 31, 2011, 03:05:22 pm

check:

http://en.flossmanuals.net/civicrm-developer-guide/

it will have some of your answers. We hope to expand and improve that book with the help of folks like YOU and the rest of the community :) So feedback would be great and appreciated

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

questions

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Durpal, 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: mail tokens, smarty, workflow templates - documentation what does... do?
October 31, 2011, 03:47:52 pm
Thanks.  That does answer a couple of the questions.  For the others I guess it's standard trial, error and reverse engineering.

The interesting thing is I don't think I knew about that guide.  It doesn't seemed to be linked from the main documentation very well.  Maybe only from the main documentation page. 

I would think it should be listed in the box in the lower left hand corner that says CiviCRM Books! but then only lists one, Understanding.  Listing the developer guild in this box as well would be nice.  Maybe also at the top of the Develop section right below the link about being new see Understanding  on http://wiki.civicrm.org/confluence/display/CRMDOC40/Develop.  I suppose I could add it there.

Also, I would think the Understanding FLOSS manual should link to Developer guide.  Not sure where, maybe as an appendix or under basic setup as the last topic, (not that it's really basic setup but...)

As an aside, is there a way to search in a FLOSS manual?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: mail tokens, smarty, workflow templates - documentation what does... do?
October 31, 2011, 04:40:01 pm

it is listed on the front page. Might want to force-refresh that page and u'll see it underneath the understanding civicrm book :)

yes, we should link it in more places. the book came out just a few weeks ago, hence the limited linkage. Yes, please add it to the wiki pages as u see fit.

You should ask questions on the IRC. Will reduce the number of trial and error loops :) U can then document what u learned!

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • mail tokens, smarty, workflow templates - documentation what does... do?

This forum was archived on 2017-11-26.