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
I have the following problem:
String Artikel = Node.GetCurrent().GetProperty("artikel").Value;
Offcourse this works fine, but any Macros inserted in the rich text editor are removed, is there an option to retrieve the rendered content of an item by using the api?
Mmmm also found another nasty thing, media is also not displaying since it returns something like:
~/media/103299/3_pensioen_pijlers_497x320.jpg
If you are using Razor you can try this:
@Html.Raw(umbraco.library.RenderMacroContent(Model.artikel.ToString(), Model.Id));
You should be able to do something similar in a user control using Node, but i've not tried it.
Thanks, that did the trick :)
string Artikel = Node.GetCurrent().GetProperty("artikel").Value;Artikel = umbraco.library.RenderMacroContent(Artikel, Node.GetCurrent().Id);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
NodeFactory and Editor Macro
I have the following problem:
String Artikel = Node.GetCurrent().GetProperty("artikel").Value;
Offcourse this works fine, but any Macros inserted in the rich text editor are removed, is there an option to retrieve the rendered content of an item by using the api?
Mmmm also found another nasty thing, media is also not displaying since it returns something like:
If you are using Razor you can try this:
@Html.Raw(umbraco.library.RenderMacroContent(Model.artikel.ToString(), Model.Id));
You should be able to do something similar in a user control using Node, but i've not tried it.
Thanks, that did the trick :)
string Artikel = Node.GetCurrent().GetProperty("artikel").Value;
Artikel = umbraco.library.RenderMacroContent(Artikel, Node.GetCurrent().Id);
is working on a reply...