MagicCMS Documentation

RouteUtils..::..GetVirtualPath Method (Int32, Int32, Int32)

Gets the routing path for a [MagicCms.Core.Magicpost]

Namespace:  MagicCMS.Routing
Assembly:  MagicCMS.4.5 (in MagicCMS.4.5.dll)

Syntax


public static string GetVirtualPath(
	int postPk,
	int parent,
	int granParent
)

Parameters

postPk
Type: Int32
The post pk.
parent
Type: Int32
The parent pk.
granParent
Type: Int32
The gran parent pk.

Return Value

If application is multilanguage "/lang/gran-parent-name/parent-name/routing-title/" otherwise "/gran-parent-name/parent-name/routing-title/"