Sunday, 18 September 2011

Programmatically have subsite inherit navigation from parent site sharepoint


To Programmatically have a subsite inherit navigation from parent site sharepoint you can use

web.Navigation.UseShared = true;
This would set the subsites global nav to "Display the same navigation items as the parent site".

Also, If you want to set the current navigation or quick launch to "Display the current site, the navigation items below the current site,and the current site's siblings" then you can use

SPpublishingWeb.NavigationShowSiblings = true;

Ads by Google

No comments:

Post a Comment