I have the following setup in my solution, described in an earlier post:
How to implement Sitecore Template inheritance with Glass Mapper
I'm able to display the content of inherited fields now. However when I try to edit them in the page editor the EditFrame is not rendered, nothing gets rendered actually. Not sure what I'm still missing. Here's my controller and view:
Controller:
public class NavigationController : Controller
{
// GET: /Navigation/
public ActionResult Index()
{
var context = new SitecoreContext();
var page = context.GetCurrentItem<HomePage>();
return View("/Views/Navigation.cshtml", page);
}
}
View:
@inherits Glass.Mapper.Sc.Web.Mvc.GlassView<Sitecore.Training7.Internet.Core.Models.HomePage>
@if (Model != null)
{
<h3 class="text-muted">Field: @Editable(x => x.NavigationTitle)</h3>
}
When I hit the preview button the value is displayed, I don't see the value in the PageEditor though. What am I still missing here? Any ideas?