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
What I'm trying to do:
The problem so far:
managed to get all of the above working, but the macros do not render, instead it comes out as:
<!--?UMBRACO_MACRO macroAlias="InsertLightboxLink" LightboxContent="17281" LinkText="Foo bar" LightboxId="null" /-->
I have found a few similar threads on the forum and StackOverflow which suggest using alternate forms like:
<umbraco:Item field="bodyContent" runat="server"></umbraco:Item>
instead of
@Model.bodyContent
But this doesn't appear to help (the umbraco:Item tag just appears as-is in the generated output)
umbraco:Item
Seems like I must be missing something blatantly obvious...
Solved.
Need to get the string content of the referenced node, and an ID for some reason
Used the following to render the inner macro:
@Html.Raw(umbraco.library.RenderMacroContent(contentNodeText, contentNodeItemId));
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
RichText content in an Umbraco Form field won't display macro
What I'm trying to do:
The problem so far:
managed to get all of the above working, but the macros do not render, instead it comes out as:
I have found a few similar threads on the forum and StackOverflow which suggest using alternate forms like:
instead of
But this doesn't appear to help (the
umbraco:Item
tag just appears as-is in the generated output)Seems like I must be missing something blatantly obvious...
Solved.
Need to get the string content of the referenced node, and an ID for some reason
Used the following to render the inner macro:
is working on a reply...