Share via


NavigationTerm.AssociatedFolderUrl property

Gets or sets the URL value that is used to associate some page URLs with this NavigationTerm object to indicate the location of the properties in the site map provider hierarchy.

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

Syntax

'Declaration
Public Property AssociatedFolderUrl As String
    Get
    Set
'Usage
Dim instance As NavigationTerm
Dim value As String

value = instance.AssociatedFolderUrl

instance.AssociatedFolderUrl = value
public string AssociatedFolderUrl { get; set; }

Property value

Type: System.String
The URL for an associated folder.

Remarks

This property is used to help calculate the CurrentNode property for a SiteMapProvider. The current node indicates the location of the page in the navigation hierarchy, such as displayed by a breadcrumb control "Investor Relations News Press Releases". Typically the current node is determined by searching the navigation hierarchy to find a node whose link matches the URL of the page being viewed, such as “/Pages/PressReleases/January2010.aspx". If a current node cannot be found (for example, the January2010.aspx page is not linked by any navigation node), then the breadcrumb would be empty. This problem can be solved by assigning the containing folder "/Pages/PressReleases" to the AssociatedFolderUrl property of the "Press Releases" term; the breadcrumb will now show "Investor Relations News Press Releases" for any page in that folder unless the page is explicitly linked by a navigation node.

The URL must be server-relative and may contain tokens such as ~site/ (representing the server-relative URL for the associated Web object) or ~sitecollection/ (representing the server-relative URL for the associated Site object). These tokens are expanded by methods such as GetResolvedAssociatedFolderUrl().

See also

Reference

NavigationTerm class

NavigationTerm members

Microsoft.SharePoint.Client.Publishing.Navigation namespace