This works fine with basic content, however when I insert a macro through the editor (which is an ascx control) the output of @Model.BodyText isn't being parsed to replace the placeholder element:
How can I change the Razor script to ouptut the content with the macro correctly inserted? The answer is probably staring me in the face, but it is Friday!
Macros in content not being parsed
I have the following Razor script within a template on Umbraco 4.7:
This works fine with basic content, however when I insert a macro through the editor (which is an ascx control) the output of @Model.BodyText isn't being parsed to replace the placeholder element:
How can I change the Razor script to ouptut the content with the macro correctly inserted? The answer is probably staring me in the face, but it is Friday!
Thanks,
Simon
Have a look at this topic, the solution is probably:
That's it! Thanks Sebastiaan :)
Hi. There was a thread just recently where the similar stuff about an XSLT macro was talked over:
http://our.umbraco.org/forum/developers/xslt/27770-Caching-output-of-umbracolibraryItem-in-XSLT-macro
I have no clue however how much it's relevant to razor macros.
is working on a reply...