2

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!

4

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!

https://stackoverflow.com/questions/27124620/sharepoint2013-site-csom-update-navigation-settings

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;


                subWeb.Update();
                webNavigationSettings.Update(tSession);

                CC.Load(subWeb, WEB_INCLUDES);

                // Apply the load
                CC.ExecuteQuery();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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