Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Hi Iulia
Have you tried to see if this works?
@Html.Raw(umbraco.library.RenderMacroContent("myMacroAlias",Model.Id))
/Jan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
Hi Iulia
Have you tried to see if this works?
/Jan
is working on a reply...