Confluence Docs 3.0 : Confluence Objects Accessible From Velocity This page last changed on Jul 06, 2009 by don.willis@atlassian.com. The complete list of objects available for use are:
Name | Description | Doc Reference
--- | --- | ---
$body | The body of the macro (if the macro has a body) |
$param0-n | The parameters passed to your macro (as available) |
$param<name> | Named parameters passed to your macro (as available) |
$config | The `BootstrapManager` object, useful for retrieving Confluence properties | BootstrapManager
$content | The current `ContentEntity` object that this macro is a included in (if available) | ContentEntityObject
$space | The `Space` object that this content object is located in (if relevant) | Space
$generalUtil | A `GeneralUtil` object, with useful utility methods for URL encoding etc | GeneralUtil
$action | A blank `ConfluenceActionSupport` object, useful for retrieving i18n text if needed | ConfluenceActionSupport
$webwork | A `VelocityWebWorkUtil` object, for its htmlEncode() method | VelocityWebWorkUtil
$req | The current `HttpServletRequest` object (if the page is rendered as a result of an HTTP request) | HttpServletRequest
$res | The corresponding `HttpServletResponse` object (not recommended to be played with) | HttpServletResponse
$userAccessor | For retrieving users, groups and checking membership | UserAccessor
$permissionHelper | For determining user rights | PermissionHelper
| Velocity Context in Exporters The above context is not inherited by the Velocity context created for PDF or Word exports. To see the available objects in that context, see this page.

Document generated by Confluence on Nov 05, 2009 23:34