Questions Tagged With cmshttps://answers.axonivy.com/tags/cms/?type=rss&user=Matthias%20Langquestions tagged <span class="tag">cms</span>enThu, 20 Jun 2013 10:19:19 -0400Macro expand/evaluate a string like in 3.xhttps://answers.axonivy.com/questions/474/macro-expand-evaluate-a-string-like-in-3-x<p>I have a text content object which contains Ivy macros like <code>&lt;%= in.abc.var%&gt;</code>. This content object is used as content in an email element with <code>&lt;%ivy.cms.co("...")%&gt;</code>. This works very good.</p> <p>Now we want to do the same but call it with an external function which gets the subject and the content as an argument. But this leads to the following exception: </p> <pre><code>ch.ivyteam.ivy.macro.MacroException: Error during macro expansion: IvyScript Runtime Exception in Instruction: in.abc.var&lt;br/&gt; Block: in.abc.var&lt;br/&gt; at ch.ivyteam.ivy.macro.internal.MacroExpander.expandMacros(MacroExpander.java:84) </code></pre> <p>Is there a possibility to evaluate a string that contains ivy macros like it was possible in Ivy 3.x?</p>Matthias LangThu, 20 Jun 2013 10:19:19 -0400https://answers.axonivy.com/questions/474/macro-expand-evaluate-a-string-like-in-3-xmacrocms