Skip to content

Commit

Permalink
Fix for sublinks not provisioned in Footer pnp#2792
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Krzaczkowski committed Oct 27, 2020
1 parent 462057a commit 772b817
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 772b817

Please sign in to comment.