diff --git a/config templates/web.config b/config templates/web.config index 3d5333ac51..86102604e4 100644 --- a/config templates/web.config +++ b/config templates/web.config @@ -178,19 +178,23 @@ - - - - - - + + + + + + + + - - - - - - + + + + + + + + diff --git a/umbraco.sln b/umbraco.sln index f41144e7b7..0f4e59c558 100644 --- a/umbraco.sln +++ b/umbraco.sln @@ -22,6 +22,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StandardConfig", "StandardC config templates\umbraco.config = config templates\umbraco.config config templates\config\umbracoSettings.config = config templates\config\umbracoSettings.config config templates\config\UrlRewriting.config = config templates\config\UrlRewriting.config + config templates\web.config = config templates\web.config EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Packages", "Packages", "{5BB61485-B480-4A03-A8DD-1636A5AF575C}" diff --git a/umbraco/presentation/umbraco/scripting/templates/cshtml/Breadcrumb-DynamicNode.cshtml b/umbraco/presentation/umbraco/scripting/templates/cshtml/Breadcrumb-DynamicNode.cshtml index 86eff3376e..7f58390fc6 100644 --- a/umbraco/presentation/umbraco/scripting/templates/cshtml/Breadcrumb-DynamicNode.cshtml +++ b/umbraco/presentation/umbraco/scripting/templates/cshtml/Breadcrumb-DynamicNode.cshtml @@ -3,7 +3,7 @@ DynamicNode:
    -@foreach(var level in @Model.Ancestors.Where("ShouldBeVisible")) +@foreach(var level in @Model.Ancestors.Where("umbracoNaviHide != true")) {
  • @level.Name
  • } diff --git a/umbraco/presentation/umbraco/scripting/templates/cshtml/ListSubPagesByDateAndLimit-DynamicNode.cshtml b/umbraco/presentation/umbraco/scripting/templates/cshtml/ListSubPagesByDateAndLimit-DynamicNode.cshtml index 710a1b99be..b1f9ceb2d4 100644 --- a/umbraco/presentation/umbraco/scripting/templates/cshtml/ListSubPagesByDateAndLimit-DynamicNode.cshtml +++ b/umbraco/presentation/umbraco/scripting/templates/cshtml/ListSubPagesByDateAndLimit-DynamicNode.cshtml @@ -2,7 +2,7 @@ @{ var numberOfItems = 10; }
      - @foreach (var item in @Model.Children.Where("ShouldBeVisible").Take(numberOfItems).OrderBy("UpdateDate")) { + @foreach (var item in @Model.Children.Where("umbracoNaviHide != true").Take(numberOfItems).OrderBy("UpdateDate")) {
    • @item.Name
    • }
    \ No newline at end of file diff --git a/umbraco/presentation/umbraco/scripting/templates/cshtml/SelectChildrenByDocumentType-DynamicNode.cshtml b/umbraco/presentation/umbraco/scripting/templates/cshtml/SelectChildrenByDocumentType-DynamicNode.cshtml index 6036b5f737..747f92a5fd 100644 --- a/umbraco/presentation/umbraco/scripting/templates/cshtml/SelectChildrenByDocumentType-DynamicNode.cshtml +++ b/umbraco/presentation/umbraco/scripting/templates/cshtml/SelectChildrenByDocumentType-DynamicNode.cshtml @@ -1,7 +1,7 @@ DynamicNode:
      -@foreach (var item in @Model.ChildItem.Where("ShouldBeVisible")) -{ -
    • @item.Name
    • + @foreach (var item in @Model.ChildItem.Where("umbracoNaviHide != true")) + { +
    • @item.Name
    • }
    \ No newline at end of file diff --git a/umbraco/presentation/umbraco/scripting/templates/cshtml/SiteMap-DynamicNode.cshtml b/umbraco/presentation/umbraco/scripting/templates/cshtml/SiteMap-DynamicNode.cshtml index 4231672875..5205c9f3e0 100644 --- a/umbraco/presentation/umbraco/scripting/templates/cshtml/SiteMap-DynamicNode.cshtml +++ b/umbraco/presentation/umbraco/scripting/templates/cshtml/SiteMap-DynamicNode.cshtml @@ -7,7 +7,7 @@ var maxLevelForSitemap = 4; var values = new Dictionary(); values.Add("maxLevelForSitemap", maxLevelForSitemap) ; - var items = node.Children.Where("ShouldBeVisible == true && Level <= maxLevelForSitemap", values); + var items = node.Children.Where("umbracoNaviHide != true && Level <= maxLevelForSitemap", values);
      @foreach (var item in items) {
    • @item.Name diff --git a/umbraco/presentation/web.STANDARD.config b/umbraco/presentation/web.STANDARD.config index 506c6a7bca..446005161d 100644 --- a/umbraco/presentation/web.STANDARD.config +++ b/umbraco/presentation/web.STANDARD.config @@ -193,13 +193,17 @@ - + + + + +