Sitecore 5.0 API

AliasResolver Class

Resolves an alias.

For a list of all members of this type, see AliasResolver Members.

System.Object
   Sitecore.Data.AliasResolver

[Visual Basic]
Public Class AliasResolver
[C#]
public class AliasResolver

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

An Alias is a an alternate path for an item when browsing the web site. For instance the URL "/campaign" can be setup to point to "/sitecore/content/Home/Campaigns/2005/Super Offers". An item may have multiple aliases.

To see if an alias exists, use the Exists method. This will check if both the alias exists and the target item exists.

When it has been determined that the alias exists, the target item can be retrieved using the Item property.

The GetTargetID method returns the item ID of the target item, if alias and target item exists.

To get the URL of the target item, use the GetTargetURL method, which returns the friendly URL of the target item.

Requirements

Namespace: Sitecore.Data

Assembly: Sitecore.Kernel (in Sitecore.Kernel.dll)

See Also

AliasResolver Members | Sitecore.Data Namespace