I have come across many resources regarding how to add pages to navigation and how to change navigation settings but have not yet seen anything on how to go from Metadata Navigation to Structure Navigation for the Current Navigation (left side nav) on a Publishing Site using CSOM. Has anyone run across resources that describe how to accomplish this? Thanks for your time!

1 Answer 1


Looks like I spoke a moment too soon. I feel a bit sheepish but I had been searching for a couple hours with no luck!


var publishingWeb = PublishingWeb.GetPublishingWeb(this.CC, subWeb);

                // WebNavigationSettings
                var webNavigationSettings = new WebNavigationSettings(this.CC, subWeb);
                webNavigationSettings.GlobalNavigation.Source = StandardNavigationSource.PortalProvider;
                webNavigationSettings.CurrentNavigation.Source = StandardNavigationSource.PortalProvider;


                CC.Load(subWeb, WEB_INCLUDES);

                // Apply the load

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.