Preview:
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
    Layout = "Layout.cshtml";

    var root = Model.Content.AncestorOrSelf(1);
    var inspirationer = root.DescendantsOrSelf().Where(x => x.DocumentTypeAlias == "inspiration");

    
}
<ul>
    @foreach (var inspiration in inspirationer)
    {


    <li> <a class="@(Model.Content.Url == @inspiration.Url ? "active" : "")"  href="@inspiration.Url">@inspiration.Name</a"></li>
    }
</ul>




@Html.Partial("Sektioner/__sections")
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter