Share via


WebNavigationSettings.AddNewPagesToNavigation property

Gets or sets a value that indicates whether the New Page ribbon command will automatically create a navigation item for the newly created page.

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

Syntax

'Declaration
Public Property AddNewPagesToNavigation As Boolean
    Get
    Set
'Usage
Dim instance As WebNavigationSettings
Dim value As Boolean

value = instance.AddNewPagesToNavigation

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

Property value

Type: System.Boolean
true if a navigation item will be created; otherwise, false.

Remarks

This property is only used with managed navigation—that is, when the GlobalNavigation() property or the CurrentNavigation() property are configured for the TaxonomyProvider().

Normally, any user with AddListItem permissions can edit the navigation term set. However, if both the AddNewPagesToNavigation property value and the CreateFriendlyUrlsForNewPages property value are false, then the navigation term set can only be edited by users with ManageLists permissions.

See also

Reference

WebNavigationSettings class

WebNavigationSettings members

Microsoft.SharePoint.Client.Publishing.Navigation namespace