To set SPWeb Navigation properties through code, you can use:
- SPWeb.Navigation.UseShared for top navigation. If you set SPWeb.Navigation.UseShared = true; it will inherit top navigation from the parent web.
- SPWeb.AllProperties[“__InheritCurrentNavigation”] for Quick Launch navigation. If you set SPWeb.AllProperties[“__InheritCurrentNavigation”] = “False”; it will only display navigation below the current site.
- SPWeb.AllProperties[“__NavigationShowSiblings”] for displaying navigation on sibling site. If you set SPWeb.AllProperties[“__NavigationShowSiblings”] = “True”; it will display navigation from the sibling sites.
Hope this helps.