Get item path
Builds a path of the item. If the path starts with the string specified in the from parameter, the start of the path is removed. The type parameter specifies which data is used to construct the path, e.g. item name or ID.
A path identifies an item. A path can be an ID or a sequence of item names or IDs. If a path starts with a slash (/) it is an absolute path that is resolved from the root element of the database. If not, it is a relative path that is resolved from the current context item.
ItemPath Class | Sitecore.Data Namespace