Questions tagged [smarty]

Questions relating to CiviCRM's use of the Smarty templating syntax.

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
68 views

Smarty tokens in postal mailing labels?

Total newbie here, but am I correct in my understanding that Smarty tokens do not function in the postal mailing label template? I have them enabled and can see them working in email and PDF letters, ...
3
votes
0answers
35 views

Adding conditional content in message template for emails, but not for PDFs

I'm wondering if it's possible to add some conditional logic in my custom user-driven message template to show some content (in this case, a footer) for messages that are sent as emails, but not to ...
2
votes
0answers
136 views

What does undefined extension class 'Smarty_Internal_Method_Assign_By_Ref' Mean?

The new installation of CIVI works. LAMP server, shared hosting, PHP 7.2, Joomla! 3.9, etc. When I click to go to configuration checklist, I get the error: undefined extension class '...
1
vote
0answers
52 views

Smarty does not display database fields

As a workflow message for a contribution confirmation, i use the following template. All values are displayed, except $financial_type_id and $source. Both stay empty in the output table. How come only ...
1
vote
0answers
32 views

I am adding crmButton in the template for EventInfo.tpl , how can I add drupal callback function and makesure it does not breaks as is the case here?

{crmButton p='drupal/event-workflow/$uid/$gid' q="action=browse&reset=1&gid=$gid" icon="th-list"}{ts}Request for Approval{/ts}{/crmButton} Where I have defined $uid and $gid variables in ...
1
vote
0answers
107 views

Custom Contribution Fields in Message Templates

I've been trying to get my custom contribution fields to be visible in my thank you/receipt message template and I think I am close but not quite there. I have enabled the CIVICRM_MAIL_SMARTY flag in ...
1
vote
0answers
175 views

Smarty URL for Event confirm Registration

I'm using the Require participant approval feature. CiviCRM 4.6.12 WordPress 4.4.2 I'm trying to send reminders to the people who hasn't already confirmed their place. Having a look at Civi's ...
0
votes
1answer
9 views

PHP Fatal error: Smarty error: [in string: (…)]: syntax error: (secure mode) (…) not allowed in if statement (…)

The CiviCRM doumentation describes, how to use Smarty to customize templates for mails and pdf's: https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#smarty E.g.: {capture ...
0
votes
0answers
18 views

Smarty Variable for tax deductible

I'd like to add custom code in my contribution receipts that does the following: {if $contributionIsTaxDeductible == True} No goods or services were exchange for this donation Tax id 12-3456789 {/...