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 have a Umbraco 7.2.8 site that was rendering some custom razor macros fine.
However now whenever there is:
@Umbraco.RenderMacro("MacroNameHere")
in the template, instead of rendering the macro output the following is rendered to the screen when the page loads,
<Macro: (,)>
This happens for a number of different macros in the template.
The template is rendering the
@Umbraco.Field("FieldNameHere")
fields correctly.
Does anyone know how to fix this please?
thanks,
Nick
Usually means that the macro with "MacroNameHere" doesn't exists in the macros tree or the file related to "MacroNameHere" doesn't exist.
Thanks Sebastiaan.
That has solved it, it appears although the macro partial .cshtml file still exists the Macro has been deleted.
I have recreated the Macros and assigned the .cshtml file to them and this has fixed the problem.
Thanks again.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Macros are rendering as <Macro: (,)>
Hi,
I have a Umbraco 7.2.8 site that was rendering some custom razor macros fine.
However now whenever there is:
in the template, instead of rendering the macro output the following is rendered to the screen when the page loads,
<Macro: (,)>
This happens for a number of different macros in the template.
The template is rendering the
fields correctly.
Does anyone know how to fix this please?
thanks,
Nick
Usually means that the macro with "MacroNameHere" doesn't exists in the macros tree or the file related to "MacroNameHere" doesn't exist.
Thanks Sebastiaan.
That has solved it, it appears although the macro partial .cshtml file still exists the Macro has been deleted.
I have recreated the Macros and assigned the .cshtml file to them and this has fixed the problem.
Thanks again.
Nick
is working on a reply...