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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...