Click or drag to resize
VirtualContextGetPreviewPathFromVirtualContext Method
Gets preview path based on given path and current initialized context.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static string GetPreviewPathFromVirtualContext(
	string path,
	bool readonlyMode = true,
	string cultureCode = null,
	bool embededInAdministration = false
)

Parameters

path
Type: SystemString
Application absolute path to be converted.
readonlyMode (Optional)
Type: SystemBoolean
Indicates if readonly mode should be enabled to disallow modify actions and POST requests.
cultureCode (Optional)
Type: SystemString
Defines a culture code for resulting preview path. If not provided, culture code from current initialized context is used.
embededInAdministration (Optional)
Type: SystemBoolean
Indicates if page is embedded in administration inside an iframe.

Return Value

Type: String
See Also