Hello all,

Is it possible to store HTML template for emails in CMS and still use the <%= %> placeholders ?

for example:

New Event: <%=in.event.channel.name%>

I have added one JSP resource in CMS and referenced it in the Email Activity: <%=ivy.cms.co("/emailTemplates/email")%>

but it didn`t worked.

Best Regards, Yordan Yunchov

asked 27.07.2016 at 12:49

Stelt0's gravatar image

Stelt0
(suspended)
accept rate: 12%


Hello Yordan

I'm very sorry for misunderstanding you.

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.

Best regards Barbara

link

answered 03.08.2016 at 09:29

Barbara%20Brugger's gravatar image

Barbara Brugger ♦♦
(suspended)
accept rate: 100%

Hello Yordan

if you want to use variables in an HTML context you need to address them the following way:

<%=ivy.html.get("in.event.channel.name")%>

(03.08.2016 at 09:08) Barbara Brugger ♦♦ Barbara%20Brugger's gravatar image

Hello Barbra,

Thanks for answering, but this was not my question.

I was asking if it is possible to put all of the HTML email template in the CMS (including the variable placeholders)

Best Regards, Yordan Yunchov

(03.08.2016 at 09:14) Stelt0 Stelt0's gravatar image

Danke Barbara !

what about the support of if-else condition ?

http://answers.axonivy.com/questions/1924/email-templating-engine

Best Regards, Yordan

(05.08.2016 at 09:45) Stelt0 Stelt0's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×34

Asked: 27.07.2016 at 12:49

Seen: 1,348 times

Last updated: 12.08.2016 at 11:28