Copied to clipboard

Flag this post as spam?

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


  • Jan Egil Kristiansen 37 posts 160 karma points
    Nov 15, 2016 @ 12:12
    Jan Egil Kristiansen
    0

    Placing Cultiv Razor Contact Form in a child template

    I try to place the template with the macro call in a parent template with @RenderSection:

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    @{Layout = "Info.cshtml";}
    @section innliming{
    @*
    <umbraco:Macro FileLocation="~/macroScripts/CultivContactForm.cshtml" MailFrom="hi@test.com" runat="server" /&tg; *@
    }

    But even with the macro element inside an Umbraco comment, the presence of the macro is causing the @inherits to be rendered as page content. Can presently be seen at http://xn--sjnleikarhsi-7gb5a7i.com/aboutus/limaskapur/InnlimingFail

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Nov 15, 2016 @ 13:26
    Alex Skrypnyk
    0

    Hi Jan,

    What version of Umbraco are you using?

    Thanks,

    Alex

  • Jan Egil Kristiansen 37 posts 160 karma points
    Nov 15, 2016 @ 13:44
    Jan Egil Kristiansen
    0

    Umbraco version 7.1.8 assembly: 1.0.5394.16131

  • Jan Egil Kristiansen 37 posts 160 karma points
    Nov 16, 2016 @ 13:21
    Jan Egil Kristiansen
    0

    I move on on my own, but leave the problem template at http://xn--sjnleikarhsi-7gb5a7i.com/aboutus/limaskapur/InnlimingFail for reference.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies