Copied to clipboard

Flag this post as spam?

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


  • DilipS11 5 posts 35 karma points
    May 05, 2021 @ 23:46
    DilipS11
    0

    Master page content properties isn't accessible on the master page.

    I created the master page with Header and Footer grids. Also I created the home page with Body grid.

    @Html.GetGridHtml(Model,"BodyContent") when I call this in body, It executes correctly where as if I do the same in the master page I get error message. Please help me with this.

    However if I do like below it works

      @inherits Umbraco.Web.Mvc.UmbracoViewPage  
    @{  
          Layout = null; 
         var content = Umbraco.Content(1061); 
    }
    
        @Html.GetGridHtml(content,"pageHeader") 
       @RenderBody()
        @Html.GetGridHtml(content,"pageFooter")
    
  • 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