SP.Publishing.Navigation.WebNavigationSettings.addNewPagesToNavigation property (sp.publishing)
Gets or sets a value that indicates whether the New Page ribbon command will automatically create a navigation item for the newly created page.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.Publishing.Navigation.WebNavigationSettings.get_addNewPagesToNavigation()SP.Publishing.Navigation.WebNavigationSettings.set_addNewPagesToNavigation(value)
Return value
true if a navigation item will be created; otherwise, false.