Environment Variables

These variables give you information about where your code is currently running from.

You can access these variables from your PHP code using syntax of the form:

cms_core::$variableName

Where noted, you can also syntax of the form:

zenario.variableName

to access some of these variables from your JavaScript code.

cms_core::$adminId

When the CMS is running in admin mode, this holds the id of the administrator who is currently logged in.

cms_core::$adminVersion

This contains the latest version of a content item - i.e. the version that an administrator would see.

cms_core::$alias

The alias (or friendly name) of the current content item.

cms_core::$cID

The id of the current content item.

cms_core::$cType

The type of the current content item, e.g. documenthtmlpicture...