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 11280 posts 23678 karma points MVP 11x 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies