I have a razor macro that an editor can add into the RTE. The contents of this field 'bodyContent' is also rendered from another razor script. The issue is that the macro that is inserted into the RTE isn't rendering (sometimes), in the html, it's outputting: <!--?UMBRACO_MACRO image="1542" macroAlias="ShowResizedContentImage" /-->, but only on the staging environment. If I run it on my local machine, it works fine.
What I can't understand is why it work locally but not on a staging environment. Is there anything in configuration/environment settings that can cause Razor macros to behave differentyl?
Razor script in a RTE not rendering
I have a razor macro that an editor can add into the RTE. The contents of this field 'bodyContent' is also rendered from another razor script. The issue is that the macro that is inserted into the RTE isn't rendering (sometimes), in the html, it's outputting: <!--?UMBRACO_MACRO image="1542" macroAlias="ShowResizedContentImage" /-->, but only on the staging environment. If I run it on my local machine, it works fine.
The code is below:
which from what i've should resolve the issue.
What I can't understand is why it work locally but not on a staging environment. Is there anything in configuration/environment settings that can cause Razor macros to behave differentyl?
is working on a reply...