Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > How can I create a conditional block in email template View modes: 
User avatar
Member
Member
knottano-gmail - 4/29/2012 8:15:34 PM
   
How can I create a conditional block in email template
In the email template (Site Mgr -> Administrator -> Email Template

I have notice when I edit the "HTML Version" content. when I type "<% if " there is a popup or context menu and there is an "IF" statement in it.

But I have been trying to search if there is any example in the document (Kentico Documents for Developer" I cannot find any example or instruction how to use it.

Could you please explain how to use this "IF" statement in the Email Template?

--- One more thing

The reason I ask above because I would like to modify the email template to send out Payment Notification of the e-commerce web site. And If an order meets the conditions, it will include a special block of content detail about the order Payment.

thank you

User avatar
Kentico Support
Kentico Support
kentico_janh - 4/30/2012 3:19:18 AM
   
RE:How can I create a conditional block in email template
Hello,

You probably mean "{% if" as a macro expression for which we have a whole K# language and in the following link you can find many syntax examples:

K# documentation

So you need to combine K# with the {%EcommerceContext%} macro context to find out, if the order met the conditions or not.

Best regards,
Jan Hermann