Razor Macro Rendering as <?UMBRACO_MACRO param="6KBslTTw-Nk" macroAlias="MyMacroAlias" />
I've created a very simple Razor macro to insert a YouTube IFrame embed in the RTE, it is set to be available in the editor but not to render the contents however when published all I am getting in the output is:
Previously I've only really used Razor macros with the FileLocation attribute rather than actually creating a Macro through the UI so not come across this one before - any ideas?
I have just realised the error in my ways, it was because I was outputting content using the uSiteBuilder syntax <%= CurrentContent.PageOverview %> and so the content was being rendered literally and the macro tags were not being parsed.
Razor Macro Rendering as <?UMBRACO_MACRO param="6KBslTTw-Nk" macroAlias="MyMacroAlias" />
I've created a very simple Razor macro to insert a YouTube IFrame embed in the RTE, it is set to be available in the editor but not to render the contents however when published all I am getting in the output is:
<?UMBRACO_MACRO myParam="xxxxxxxx" macroAlias="MyMacroAlias" />
Previously I've only really used Razor macros with the FileLocation attribute rather than actually creating a Macro through the UI so not come across this one before - any ideas?
I have just realised the error in my ways, it was because I was outputting content using the uSiteBuilder syntax <%= CurrentContent.PageOverview %> and so the content was being rendered literally and the macro tags were not being parsed.
is working on a reply...