2864 Posts in 732 Topics by 700 members
Template Questions
SilverStripe Forums » Template Questions » If blocks in email templates?
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 590 Views |
-
If blocks in email templates?

15 March 2010 at 7:36am Last edited: 15 March 2010 7:37am
Hello,
is there a way to use if statements in email submussion forms? When I use the template if blocks:
<% if $checkbox %> Write Hello <% end_if %>
I always get follwoing error:
Parse error: syntax error, unexpected '}' in ../email_template.ss on line 107
Do u know how to get this to work?
thx,
Plautzer -
Re: If blocks in email templates?

15 March 2010 at 11:59am
In the templating language one doesn't use $ to assign variables / functions within the opening and closing brackets (<% %>)
So it is like this:
<% if checkbox %>
$Message
<% end_if %>
| 590 Views | ||
|
Page:
1
|
Go to Top |


