Confluence 6 Objects Available in Your Templates

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 BootstrapManagerThe object is used to get Confluence properties. BootstrapManager
$renderContext PageContextobject, useful for other things, see$renderContext.outputType PageContext
$space SpaceObject, contains relative page, blog page and other object content. Space
$content The current ContentEntityobject 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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324980042&siteId=291194637