Application information

Basic information about the current application. Your plugin can use this to identify the application and generate URLs.

property O.application.id

The numeric application ID.

property O.application.name

The human readable name of this application, typically the name of the organisation using it.

property O.application.hostname

The hostname of the application.

property O.application.url

The base URL of the application, including the protocol. The returned string does not include a trailing / character.

property O.application.config

The configuration data for this application, editable in System Management as a JSON document.

The properties of this object will not change after your plugin has been loaded. If the administrator edits the configuration data, the plugins are reloaded into a new JavaScript runtime. Therefore, you can safely use the contents of this document to change how things like request handlers and forms are declared.

property O.application.plugins

Array of JavaScript plugin names, in load order. You should probably never use this, as there are perfectly good ways of communicating between plugins.

If you really do have to use this, you may find that O.getPluginInstance() is useful to obtain the Plugin object.

Note that this list will not include trusted plugins bundled in the platform, as they are not implemented in JavaScript.