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 am displaying content from an RTE, this is working fine. But when we insert a macro into the RTE it does not get displayed.
I have included a snippet for reference, any help would be much appreciated.
Thanks
@foreach (var tab in modeTab.Children)
{
<div role="tabpanel" class="tab-pane @tab.Id">
@Html.Raw(tab.GetPropertyValue("tab"))
</div>
}
Hi Karl
How are you rendering the rich text editor content? And what version of Umbraco are you using?
/Jan
Version 7.2.0
I am using razor to render the rich text content.
I am using DynamicNode and passing the page id, I am then looping through the children and using GetPropertyValue to display the content.
It works fine for standard html but not macro content.
Fixed by using the following:
@(Html.Raw(library.RenderMacroContent(tab.GetPropertyValue("tab"), CurrentPage.Id)))
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Render macro from rich text
Hi
I am displaying content from an RTE, this is working fine. But when we insert a macro into the RTE it does not get displayed.
I have included a snippet for reference, any help would be much appreciated.
Thanks
@foreach (var tab in modeTab.Children)
{
<div role="tabpanel" class="tab-pane @tab.Id">
@Html.Raw(tab.GetPropertyValue("tab"))
</div>
}
Hi Karl
How are you rendering the rich text editor content? And what version of Umbraco are you using?
/Jan
Thanks
Version 7.2.0
I am using razor to render the rich text content.
I am using DynamicNode and passing the page id, I am then looping through the children and using GetPropertyValue to display the content.
It works fine for standard html but not macro content.
Thanks
Fixed by using the following:
@(Html.Raw(library.RenderMacroContent(tab.GetPropertyValue("tab"), CurrentPage.Id)))
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.