Containing the macro body and parameters, the following Confluence objects are available in the macro:
$body |
The body of the macro (if the macro has a body) | String |
$paramfoo , $parambar , ...$param<name> |
passed to named arguments in your macro ("foo", "bar") | String |
$config |
BootstrapManager The object is used to get Confluence properties. |
BootstrapManager |
$renderContext |
PageContext object, useful for other things, see$renderContext.outputType |
PageContext |
$space |
Space Object, contains relative page, blog page and other object content. |
Space |
$content |
The current ContentEntity object is what the current macro contains (if any). |
ContentEntityObject |
Macros can also access objects that Velocity has access to by default, such as described in the developer documentation: as described in the developer documentation .
https://www.cwiki.us/display/CONFLUENCEWIKI/User+Macro+Template+Syntax