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
Please let me know if I am posting in the wrong area of this one.
I was just wondering if anyone knew if the uSiteBuilder package is likely to be update to include adding macros that point at Razor files.
Currently you only seem to be able to add .NET controls as macros.
Thanks a lot,
Check out Sebastiaan's article, he talks about using razor macros near the end:
Yup, so what it comes down to: you don't need uSitebuilder for this, just create .cshtml files and define your Razor macro's in your template like this:
<umbraco:Macro FileLocation="~/macroScripts/MyRazorFile.cshtml" runat="server" />
Because it is now pointing directly to the file, Umbraco doesn't need a full macro definition. You can even have attributes in this definition to enable caching, etc, everything you can normally do in a macro definition.
Only just remembered about this, I'd hacked the uSiteBuilder build to allow me to do what I wanted but this makes more sense.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted