Share via


PublishingWeb.NavigationShowSiblings Property

Controls whether this Web site should display siblings of the current Web site in current navigation.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Property NavigationShowSiblings As Boolean
    Get
    Set
'Usage
Dim instance As PublishingWeb
Dim value As Boolean

value = instance.NavigationShowSiblings

instance.NavigationShowSiblings = value
public bool NavigationShowSiblings { get; set; }

Property Value

Type: System.Boolean
Boolean value that represents whether this PublishingWeb should display siblings.
Defaults to True for PublishingWeb objects.
Defaults to False for most other types of Webs.

Remarks

Current navigation normally starts at the current Web site, so only this Web site and those items beneath it would be visible. This property forces the starting node up one level so that siblings of the current Web site are available. Any children of the sibling nodes are automatically removed.

To save changes after setting this property, call the Update method.

See Also

Reference

PublishingWeb Class

PublishingWeb Members

Microsoft.SharePoint.Publishing Namespace

PortalSiteMapProvider