Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Steven Newstead 62 posts 103 karma points
    May 24, 2011 @ 15:26
    Steven Newstead

    Allowing a Contour form in a Rich text editor

    Hi all,

    I am having some problems inserting a Contour form into a rich text editor. I am on 4.7 and using Razor as the view engine.

    I can insert the form into the Rich text editor and in Umbraco it displays, however when I publish the site it is rendering in the page like this:

    <?UMBRACO_MACRO toemail="[email protected]"
    macroAlias="umbracoContour.RenderForm" />


    Has anyone seen this before, can anyone point me in the right direction to fix it??



  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 24, 2011 @ 19:13
    Tom Fulton


    I can't speak for Razor specifically, but with XSLT you have to call the RTE field wrapped with the RenderMacroContent function if you expect a macro to be inside, or you'll get output like the above.

    Try something like:  @Html.Raw(umbraco.library.RenderMacroContent(content, currentNode.Id));

    ( from this thread )

    Hope this helps,

  • Steven Newstead 62 posts 103 karma points
    May 27, 2011 @ 10:01
    Steven Newstead

    That's doing more than it was before, I now have a button at the bottom, but it's not quite right I will let you know as soon as it's solved...

Please Sign in or register to post replies

Write your reply to: