PortalNavigation.ShowSiblings Property

Controls whether this site should display its sibling items in the current navigation.

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

Syntax

'Declaration
Public Property ShowSiblings As Boolean
    Get
    Set
'Usage
Dim instance As PortalNavigation
Dim value As Boolean

value = instance.ShowSiblings

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

Property Value

Type: System.Boolean
Returns Boolean.

Remarks

Defaults to true for publishing sites. Defaults to false for other site templates. Current navigation is normally anchored at the current site and shows the items beneath that site. This property forces the starting node up one level so that the siblings of the current site are displayed. Any children of the sibling nodes are automatically trimmed. To save changes after setting this property, call the PublishingWeb.Update method.

See Also

Reference

PortalNavigation Class

PortalNavigation Members

Microsoft.SharePoint.Publishing.Navigation Namespace