diff --git a/TestSite/Views/Partials/Navigation/TopNavigation.cshtml b/TestSite/Views/Partials/Navigation/TopNavigation.cshtml index 47ae4d6..0c05f4b 100644 --- a/TestSite/Views/Partials/Navigation/TopNavigation.cshtml +++ b/TestSite/Views/Partials/Navigation/TopNavigation.cshtml @@ -1,4 +1,5 @@ @inherits Umbraco.Web.Mvc.UmbracoViewPage +@using UmbNav.Core.Enums @using UmbNav.Core.Extensions @using UmbNav.Core.Models @using Umbraco.Web; @@ -8,9 +9,21 @@ } @foreach (var item in umbNav) { + var hideChildren = false; + if (item.ItemType == UmbNavItemType.Content && item.Content != null && item.Content.HasProperty("hideChildren")) + { + hideChildren = item.Content.Value("hideChildren"); + } if (item.Image != null) { @item.Image.Url() } @item.Title + if (!hideChildren) + { + foreach (var child in item.Children) + { + @child.Title + } + } } \ No newline at end of file diff --git a/TestSite/uSync/v8/Content/people.config b/TestSite/uSync/v8/Content/people.config index 4ad82c8..7f4848c 100644 --- a/TestSite/uSync/v8/Content/people.config +++ b/TestSite/uSync/v8/Content/people.config @@ -18,8 +18,7 @@ "name": "1 column layout", "sections": [ { - "grid": 12, - "allowAll": true, + "grid": "12", "rows": [] } ] @@ -28,6 +27,9 @@ + + + diff --git a/TestSite/uSync/v8/Content/umbnav.config b/TestSite/uSync/v8/Content/umbnav.config index 050ff88..b8b0874 100644 --- a/TestSite/uSync/v8/Content/umbnav.config +++ b/TestSite/uSync/v8/Content/umbnav.config @@ -13,45 +13,158 @@