Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • aghy 129 posts 308 karma points
    Jan 24, 2012 @ 09:50
    aghy
    0

    Get Razor Transform Result

    Hi, 

    There is a function in umbraco.macro to GetXsltTransformResult by passing in a few parameters. I can then use that to output some data in the data editor (Content) section. 

    I'd like to know if there is a Razor version of this? All I'd like to do is pass a macro some parameters and output to a literal to show the macro.

    I currently use this for XSLT:

    umbraco.macro.GetXsltTransformResult(new XmlDocument(), umbraco.macro.getXslt(new Macro(MacroId).Xslt), Parameters)

    Thanks
    Ben 

Please Sign in or register to post replies

Write your reply to:

Draft