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
Hey.
I find lots of examples for inline Razor macro's like
<umbraco:macro runat="server" language="razor">@using umbraco.MacroEngines@foreach( var Child in Model.Children ) { <p>@Child.Name</p>}</umbraco:macro>
But how do I define a Razor macro in the Developer section of umbraco?
Thank you.Regards.Kris.
Ok, I found it thanks to http://www.youtube.com/watch?v=NgnKy-VTimU&feature=youtu.be
You add a cshtml file using "Scripting Files" in the Developer section.
Regards.Kris
And may I say, this Razor stuff is AWESOME :-)
is working on a reply...
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.
Continue discussion
Razor macro in the Developer section?
Hey.
I find lots of examples for inline Razor macro's like
But how do I define a Razor macro in the Developer section of umbraco?
Thank you.
Regards.
Kris.
Ok, I found it thanks to http://www.youtube.com/watch?v=NgnKy-VTimU&feature=youtu.be
You add a cshtml file using "Scripting Files" in the Developer section.
Regards.
Kris
And may I say, this Razor stuff is AWESOME :-)
is working on a reply...
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.
Continue discussion