zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Confluence 6 你模板中可用的对象

模板对象 可用 confluence
2023-09-27 14:20:35 时间

包含宏正文和参数,下面的 Confluence 对象在宏中可用:

$body 宏的正文(如果宏有正文的话) String
$paramfoo$parambar, ...$param<name> 传递到你宏中被命名的参数("foo", "bar") String
$config BootstrapManager 对象被用来获取 Confluence 属性。 BootstrapManager
$renderContext PageContext 对象,针对其他事情会比较有用,请查看 $renderContext.outputType PageContext
$space Space 对象,包含有相对的页面,博客页面等对象内容。 Space
$content 当前的 ContentEntity 对象是当前宏包含的(如果有的话)。 ContentEntityObject

宏也可以访问 Velocity 默认可以访问的对象,例如下面开发文档中描述的:as described in the developer documentation

 

https://www.cwiki.us/display/CONFLUENCEWIKI/User+Macro+Template+Syntax