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")
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))
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
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))
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
is working on a reply...