Поделиться через


SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing)

Задает поведение навигации и свойств для объекта SP. Конструктор Taxonomy.Term (sp.taxonomy) , используемый для навигации и понятные URL-адреса веб-сайта.

Дата последнего изменения: 9 марта 2015 г.

Область применения: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

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

Элементы

Объект NavigationTerm содержит следующие элементы.

Методы

Объект NavigationTerm содержит следующие методы.

Метод

Описание

deleteObject

Deletes this SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object and its child objects from the associated SP. Объект Taxonomy.TermStore (sp.taxonomy) object.

getAllParentTerms

Returns the SP. Свойство Publishing.Navigation.NavigationTerm.parent (sp.publishing) parent object and all of its parents. If there is no parent, then the collection will be empty.

getAsEditable

Returns an editable version of a SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object.

getAsResolvedByView

Constructs a SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object in editable mode that is bound to the specified SP. Конструктор Taxonomy.Term (sp.taxonomy) object.

getAsResolvedByWeb

Constructs an editable SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object that is bound to a specified SP. Конструктор Taxonomy.Term (sp.taxonomy) object.

getResolvedAssociatedFolderUrl

Returns the associatedFolderUrl property as a server-relative URL.

getResolvedTargetUrl

Returns a target page address as a server-relative URL from the SP. Свойство Publishing.Navigation.NavigationTerm.targetUrl (sp.publishing) property.

getResolvedTargetUrlWithoutQuery

Returns a target page address as a server-relative URL that does not include a query string.

getTaxonomyTerm

Returns the associated SP. Конструктор Taxonomy.Term (sp.taxonomy) object if the SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object is in the editable mode.

getWebRelativeFriendlyUrl

Returns the friendly URL segments as a concatenated path.

getWithNewView

Returns a new SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object based on the SP. Объект Publishing.Navigation.NavigationTermSetView (sp.publishing) that is provided.

Перемещение

Moves the SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object to be a child of the specified NavigationTerm object or SP. Объект Publishing.Navigation.NavigationTermSet (sp.publishing) object.

Properties

Объект NavigationTerm имеет следующие свойства.

Свойство

Описание

associatedFolderUrl

Gets or sets the URL value that is used to associate some page URLs with this SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object to indicate the location of the properties in the site map provider hierarchy.

catalogTargetUrl

Gets the target URL that is used when rewriting URLs for catalog-friendly URLs that are based on this SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object.

categoryImageUrl

Gets or sets the specified URL of an image that optionally can be displayed by a template page.

excludedProviders

A collection of site map provider names that will exclude this navigation term from their results when SP. Свойство Publishing.Navigation.NavigationTermSetView.excludeTermsByProvider (sp.publishing) is true. This collection includes the names corresponding to SP. Свойство Publishing.Navigation.NavigationTerm.excludeFromGlobalNavigation (sp.publishing) and SP. Свойство Publishing.Navigation.NavigationTerm.excludeFromCurrentNavigation (sp.publishing).

excludeFromCurrentNavigation

Gets or sets whether this navigation term and its child terms are hidden from the current navigation menu.

excludeFromGlobalNavigation

Gets or sets a value that indicates whether the navigation term and its child terms are hidden from the global navigation menu.

friendlyUrlSegment

Gets a custom friendly URL segment for the node that is represented by the SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object.

hoverText

Gets or sets a description that is typically displayed by a menu or by breadcrumb navigation controls when the mouse hovers over the navigation link.

isDeprecated

Indicates whether the SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object is deprecated.

isPinned

Indicates whether a SP. Конструктор Taxonomy.Term (sp.taxonomy) object is a pinned term.

isPinnedRoot

Indicates whether the underlying SP. Конструктор Taxonomy.Term (sp.taxonomy) object is the root of a subtree of pinned terms.

Родительский раздел

Returns the parent SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) object.

simpleLinkUrl

Gets or sets the target URL if the navigation node represents a simple link.

targetUrl

Gets the URL of a publishing page that is used to render a friendly URL.

termSet

Gets the associated SP. Объект Publishing.Navigation.NavigationTermSet (sp.publishing) object that the SP. Объект Publishing.Navigation.NavigationTerm (sp.publishing) belongs to.

Конструктор

Объект NavigationTerm имеет следующий конструктор.

Конструктор

Описание

NavigationTerm

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