Copied to clipboard

Flag this post as spam?

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


  • Jonas Nilsson 137 posts 260 karma points
    May 25, 2014 @ 08:50
    Jonas Nilsson
    0

    Macro Container and Contour

    Hi!

    I can't find any working answer for how to use the macro container to select an Contour form and render it with Razor in Umbraco 7.1

    I only get a "<!--?UMBRACO_MACRO macroAlias="umbracoContour.RazorRenderForm" FormGuid="00381834-d9f7-4d94-b6f3-f2eb9b380cbd" /-->" when using @Umbraco.Field("orderForm")

    /Jonas

     

     

  • Yakov Lebski 553 posts 2117 karma points
    May 26, 2014 @ 07:23
    Yakov Lebski
    0

    I have reported this issue http://issues.umbraco.org/issue/U4-4222 Here some workaround for it: @Html.Raw(library.RenderMacroContent(CurrentPage.FIELDNAME,Model.Content.Id))

  • Vasia Vasia 49 posts 241 karma points
    May 26, 2014 @ 21:53
    Vasia Vasia
    0

    Hi,

    To render form with razor - use the following code:

    @Umbraco.RenderMacro("umbracoContour.RazorRenderForm", new { FormGuid = "GUID" })

    Also, you should create the form picker datatype to select Contour form

     

    Best, Oleg

Please Sign in or register to post replies

Write your reply to:

Draft