Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Macros in Transformations View modes: 
User avatar
Member
Member
robert-tailor.co - 2/18/2013 8:01:32 PM
   
Macros in Transformations
Hi,

Is there any reason that Macros are resolved everywhere in Kentico *except* in Transformations?

And is there any reason this isn't mentioned in the documentation?

How can I resolve a Macro in a transformation?

User avatar
Member
Member
eagleag - 2/19/2013 1:18:22 AM
   
RE:Macros in Transformations
Hi,

you can find in dev guide- "Resolving macros using the API"

can use
CMSContext.ResolveMacros(string inputText)


User avatar
Kentico Support
Kentico Support
kentico_janh - 2/19/2013 1:56:35 AM
   
RE:Macros in Transformations
Hello,

You can use this:

<%# CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("<macro>") %>


Best regards,
Jan Hermann