Views - JimBobSquarePants/Zoombraco GitHub Wiki
This class inherits the UmbracoViewPage<T>
class adding an extra property ContentHelper
that allows context-aware, strong-typed, traversal of the the document tree and should be used within all views that require an Umbraco context within your application.
An example of how to use this class within a view to render strong typed content.
@using Zoombraco.Models
@using Zoombraco.Views
@inherits ZoombracoViewPage<RenderPage<ZoombracoDemo.Logic.Models.Generic>>
@{ Html.RenderPartial("~/Views/Partials/Shared/_HeroPanel.cshtml", Model.Content);}
<h1>@Model.Content.Name</h1>
<h2>Nested Content</h2>
@{ Html.RenderPartial("~/Views/Partials/Shared/_NestedContent.cshtml", Model.Content);}