New answers tagged

0

If you are using Glass Mapper 5 then you can apply EditFrame using below code: @using (Html.Glass().BeginEditFrame(Model.HeroBanner, "Edit Banner", m => m.BannerImage, m => m.BannerNavigation, m => m.ShowSameMessage, m => m.HideSection)) { <div class="background" style="@(Model.HeroBanner.BannerImage != null ? &...


1

We faced the same issue any adding virtual keyword worked for us as @Marek is saying in comments as well. [SitecoreChildren] public virtual IEnumerable<Country> Chlidren { get; set; } Glass mapper document states - One important thing to remember when writing class with Glass.Mapper is to ensure that all your fields are marked as virtual. Glass....


Top 50 recent answers are included