Skip to main content



Umbraco 7 HTML Site Map Partial View

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{ var home = CurrentPage.Site(); }

@if (home.Children.Any())
    @* Get the first page in the children *@
    var naviLevel = home.Children.First().Level;
    var listChildPages = "false";

    @* Add in level for a CSS hook *@
    <ul style="margin-top:0px;paddin:0px;font-size:16px;">          
        @* For each child page under the home node *@
        <li><a href="/" title="@CurrentPage._siteTitle">Home</a></li>
        @foreach (var childPage in home.Children.Where("Visible"))
            if (childPage.Children.Any() && listChildPages =="true"  && != 1110)
                <li style="margin-bottom:5px;">
                            <a href="@childPa…

Latest posts

Umbraco 7 Metadata, Keywords, Description and Title

Umbraco 7 Hide a page from Navigation or Sub Navigation with umbracoNaviHide using Razor in a template or partial view

Umbraco 7 Previous and Next Buttons

Umbraco 7 Get the Text and Value from a Radio List

Umbraco 7 test for Odd and Even rows in a loop to display differenrt coloured rows or sections

Umbraco 7 Check to see if a filed HasVale and check to see if a Field IsNullOr Empty

Umbraco Razor - One Way to Check to See if A Node or Page Still Exists and or is Published

Umbraco Forms - Basics

Umbraco 7 Partial View - Main Navigation - C# - Razor - With Home Page

Umbraco 7 - Partial View - Get RSS Feed and Check Status Code - C# - Razor