MagicCMS Documentation

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

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,
	string parentName,
	string lang
)

Parameters

postPk
Type: Int32
The post pk.
parentName
Type: String
Name of the parent.
lang
Type: String
The language.

Return Value

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