SP.Publishing.Navigation.WebNavigationSettings object (sp.publishing)

Manages the navigation settings for a publishing site.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.Publishing.Navigation.WebNavigationSettings()

Members

The WebNavigationSettings object has the following members.

Methods

The WebNavigationSettings object has the following methods.

Method

Description

newObject

resetToDefaults

Resets a SP.Publishing.Navigation.WebNavigationSettings object (sp.publishing) object to its default state.

update

Writes the new settings to the web site that was passed to the constructor.

Properties

The WebNavigationSettings object has the following properties.

Property

Description

addNewPagesToNavigation

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

createFriendlyUrlsForNewPages

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

currentNavigation

Gets an object that manages the settings for current navigation.

globalNavigation

Gets an object that manages the settings for global navigation.

Constructor

The WebNavigationSettings object has the following constructor.

Constructor

Description

WebNavigationSettings

Initializes a new instance of the SP.Publishing.Navigation.WebNavigationSettings object.