Copied to clipboard

Flag this post as spam?

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


  • Iulia Maria Jensen 40 posts 71 karma points
    May 21, 2014 @ 15:41
    Iulia Maria Jensen
    0

    Render macro in macroScripts via razor

    Hi,

    I am sitting with a task where I have a cshtml file(with some razor in it) in /macroScripts and need to render a new macro in it (xslt macro).

    Is it possible to do this? And if so, how? If not, any suggestions on the matter?

     

    Kind regards,

    Iulia

     

  • Jan Skovgaard 11244 posts 23437 karma points MVP 6x admin c-trib
    May 30, 2014 @ 10:00
    Jan Skovgaard
    0

    Hi Iulia

    Have you tried to see if this works?

    @Html.Raw(umbraco.library.RenderMacroContent("myMacroAlias",Model.Id))
    

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft