TreePathUtils GetParentPathRestricted Method Kentico 8.0 API Reference
Returns the parent path for the specified path (any kind of path with "/" as a separator) with restriction on depth of the path

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

path
Type: OnlineSystem String
Original path
maximalLevel
Type: OnlineSystem Int32
Restricts returned path to specified maximal number of parent levels

Return Value

Type: OnlineString
See Also