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
    0

    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:

    <p>&nbsp;</p>
    <?UMBRACO_MACRO toemail="[email protected]"
    formguid="3e75a1f9-648b-4f8d-8612-2d0db92c2db0"
    macroAlias="umbracoContour.RenderForm" />
    <p>&nbsp;</p>

     

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

    Cheers,

    Steve

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

    Hi,

    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,
    Tom

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

    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:

Draft