VirtualContext Class |
Namespace: CMS.Helpers
public static class VirtualContext
The VirtualContext type exposes the following members.
Name | Description | |
---|---|---|
ADMINISTRATION_DOMAIN_PARAMETER |
Query string parameter that holds administration url (scheme + domain + appPath)
| |
PARAM_CULTURE |
Name of the culture code parameter
| |
PARAM_EMBEDED_IN_ADMINISTRATION |
Name of the parameter which indicates if page is embedded in administration inside an iframe.
| |
PARAM_FORM_BUILDER_EXPIRATION |
Name of the parameter which indicates form builder preview link expiration.
| |
PARAM_FORM_BUILDER_URL |
Name of the parameter which indicates that data in the VirtualContext URL belong to Form builder.
| |
PARAM_HASH |
Name of the hash parameter
| |
PARAM_PREVIEW_LINK |
Name of the preview link parameter
| |
PARAM_SITENAME |
Name of the site name parameter
| |
PARAM_USERNAME |
Name of the user name parameter
| |
PARAM_VIEWMODE |
Name of the view mode parameter
| |
PARAM_WF_GUID |
Name of the workflow cycle GUID parameter
|
Name | Description | |
---|---|---|
CurrentURLPrefix |
Current prefix for the URL in the virtual context
| |
IsFormBuilderLinkInitialized |
Returns true if form builder virtual context properties have been initialized.
| |
IsInitialized |
Returns true if some virtual context properties have been initialized
| |
IsPreviewLinkInitialized |
Returns true if preview link virtual context properties have been initialized
| |
ReadonlyMode |
Returns true if virtual context is initialized in readonly mode only
| |
VirtualContextPrefix |
Default URL prefix for the pages virtual context. Default value is "/cmsctx/"
| |
VirtualContextSeparator |
Default URL separator for the prefix and original URL for pages with virtual context. Default value is "-"
|
Name | Description | |
---|---|---|
AddPathHash |
Calculates hash for the given path and appends it to the URL.
| |
ContainsVirtualContextPrefix |
Returns true if the URL contains virtual context prefix
| |
GetFormBuilderPath |
Returns path containing VirtualContext data required by Form builder.
| |
GetItem |
Gets the particular item from virtual context
| |
GetPreviewParameters |
Gets the collection of parameters for preview path.
| |
GetPreviewPathFromVirtualContext |
Gets preview path based on given path and current initialized context.
| |
GetVirtualContextPath |
Removes the virtual context prefix from the given URL
| |
GetVirtualContextPrefix |
Gets the prefix for the virtual context URL
| |
HandleVirtualContext |
Loads and stores the virtual context values for the request.
| |
ItemIsSet |
Returns true, if the given item is set
| |
LoadVirtualContextValues |
Loads the virtual context values from the URL into a NameValueCollection.
| |
RemoveVirtualContextPrefix |
Removes the virtual context prefix from the given URL
| |
ReplaceVirtualContextPrefix |
Replaces the virtual context prefix from the given URL with a new one
| |
Reset |
Resets the current virtual context
| |
SetItem |
Sets the particular item in the virtual context
| |
StoreVirtualContextValues |
Stores key-value pairs into virtual context.
| |
ValidatePathHash |
Validates the hash of the relative path of the document.
|