@inherits UmbracoViewPage @using Umbraco.Web.Templates @if (Model != null && !string.IsNullOrEmpty(Model.ToString())) { var onlyOneColumn = Model.sections != null ? ((System.Collections.ICollection)Model.sections).Count : 0;
@foreach (var s in Model.sections) {
@foreach (var row in s.rows) {
@foreach (var area in row.areas) {
@foreach (var control in area.controls) { if (control != null && control.editor != null && control.editor.view != null) { string editor = "grid/editors/" + control.editor.view.ToString(); @Html.Partial(editor, (object)control) } }
}
}
}
}