SP.Publishing.Navigation.TaxonomyNavigation.getTermSetForWeb Method (sp.publishing)

Returns efficiently from the taxonomy navigation cache a read-only instance of a SP.Publishing.Navigation.NavigationTermSet object (sp.publishing) object for the specified SP.Web object (sp.js) object.

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

SP.Publishing.Navigation.TaxonomyNavigation.getTermSetForWeb(context)

Parameters

  • context

  • web
    The web site from which to retrieve the NavigationTermSet object.

  • siteMapProviderName
    The name of the site map provider associated with the NavigationTermSet.

  • includeInheritedSettings
    If true, then the returned term set may be inherited from a parent web site, for example as specified by the StandardNavigationSource.InheritFromParentWeb setting. If false, then this method will only return term sets bound to the web site indicated by the web parameter.

Return value

SP.Publishing.Navigation.NavigationTermSet

A NavigationTermSet object for the specified Web object if managed navigation is configured for the site; otherwise, null.