From 772b817b796338f49edad9db26ab05d3ed746efc Mon Sep 17 00:00:00 2001 From: Krzysztof Krzaczkowski Date: Wed, 28 Oct 2020 00:58:45 +0100 Subject: [PATCH] Fix for sublinks not provisioned in Footer #2792 --- .../ObjectHandlers/ObjectSiteFooterSettings.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Core/OfficeDevPnP.Core/Framework/Provisioning/ObjectHandlers/ObjectSiteFooterSettings.cs b/Core/OfficeDevPnP.Core/Framework/Provisioning/ObjectHandlers/ObjectSiteFooterSettings.cs index 7ecdcb03eb..bf89187541 100644 --- a/Core/OfficeDevPnP.Core/Framework/Provisioning/ObjectHandlers/ObjectSiteFooterSettings.cs +++ b/Core/OfficeDevPnP.Core/Framework/Provisioning/ObjectHandlers/ObjectSiteFooterSettings.cs @@ -347,11 +347,20 @@ public override TokenParser ProvisionObjects(Web web, ProvisioningTemplate templ } foreach (var footerLink in template.Footer.FooterLinks) { - menuNode.Children.Add(new NavigationNodeCreationInformation() + var newParentNode = menuNode.Children.Add(new NavigationNodeCreationInformation() { Url = parser.ParseString(footerLink.Url), Title = parser.ParseString(footerLink.DisplayName) }); + + foreach (var childFooterLink in footerLink.FooterLinks) + { + newParentNode.Children.Add(new NavigationNodeCreationInformation() + { + Url = parser.ParseString(childFooterLink.Url), + Title = parser.ParseString(childFooterLink.DisplayName) + }); + } } if (web.Context.PendingRequestCount() > 0) {