<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Email template in CMS</title><link>https://answers.axonivy.com/questions/1922/email-template-in-cms</link><description>&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;Is it possible to store HTML template for emails in CMS and still use the &amp;lt;%= %&amp;gt; placeholders ?&lt;/p&gt;
&lt;p&gt;for example:
&lt;/p&gt;&lt;table&gt;
       &lt;tbody&gt;&lt;tr&gt;
      &lt;td&gt;New Event: &lt;strong&gt;&amp;lt;%=in.event.channel.name%&amp;gt;&lt;/strong&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have added one JSP resource in CMS and referenced it in the Email Activity:
&amp;lt;%=ivy.cms.co("/emailTemplates/email")%&amp;gt;&lt;/p&gt;
&lt;p&gt;but it didn`t worked.&lt;/p&gt;
&lt;p&gt;Best Regards,
Yordan Yunchov&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</description><atom:link href="https://answers.axonivy.com/questions/1922/email-template-in-cms" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 05 Aug 2016 09:45:10 -0400</lastBuildDate><item><title>Comment by Stelt0 on Barbara Brugger's answer</title><link>https://answers.axonivy.com/questions/1922/email-template-in-cms#1941</link><description>&lt;p&gt;Danke Barbara !&lt;/p&gt;
&lt;p&gt;what about the support of if-else condition ?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://answers.axonivy.com/questions/1924/email-templating-engine"&gt;http://answers.axonivy.com/questions/1924/email-templating-engine&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,
Yordan&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stelt0</dc:creator><pubDate>Fri, 05 Aug 2016 09:45:10 -0400</pubDate><guid>https://answers.axonivy.com/questions/1922/email-template-in-cms#1941</guid></item><item><title>Answer by Barbara Brugger</title><link>https://answers.axonivy.com/questions/1922/email-template-in-cms/1931</link><description>&lt;p&gt;Hello Yordan&lt;/p&gt;
&lt;p&gt;I'm very sorry for misunderstanding you.&lt;/p&gt;
&lt;p&gt;Yes this is possible. You find an example how to do this in the WorkflowDemos project in the designer directory /applications/samples. As far as I can see your code looks fine, provided that the CMS path and the variable name are correct.&lt;/p&gt;
&lt;p&gt;Best regards
Barbara&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barbara Brugger</dc:creator><pubDate>Wed, 03 Aug 2016 09:29:20 -0400</pubDate><guid>https://answers.axonivy.com/questions/1922/email-template-in-cms/1931</guid></item><item><title>Comment by Stelt0 on Barbara Brugger's answer</title><link>https://answers.axonivy.com/questions/1922/email-template-in-cms#1930</link><description>&lt;p&gt;Hello Barbra,&lt;/p&gt;
&lt;p&gt;Thanks for answering, but this was not my question.&lt;/p&gt;
&lt;p&gt;I was asking if it is possible to put all of the HTML email template in the CMS (including the variable placeholders)&lt;/p&gt;
&lt;p&gt;Best Regards,
Yordan Yunchov&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stelt0</dc:creator><pubDate>Wed, 03 Aug 2016 09:14:38 -0400</pubDate><guid>https://answers.axonivy.com/questions/1922/email-template-in-cms#1930</guid></item><item><title>Comment by Barbara Brugger on Barbara Brugger's answer</title><link>https://answers.axonivy.com/questions/1922/email-template-in-cms#1929</link><description>&lt;p&gt;Hello Yordan&lt;/p&gt;
&lt;p&gt;if you want to use variables in an HTML context you need to address them the following way:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;%=ivy.html.get("in.event.channel.name")%&amp;gt;&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barbara Brugger</dc:creator><pubDate>Wed, 03 Aug 2016 09:08:54 -0400</pubDate><guid>https://answers.axonivy.com/questions/1922/email-template-in-cms#1929</guid></item></channel></rss>