使用代码实现confluence blueprint创建定制页面(多级)

使用场景:

在confluence中一键创建定制页面,包含两级页面,每个页面的内容有固定格式,这些页面用作某类文档的模板。

现状:

confluence原生功能就支持自定义模板实现定制,然而无法实现多级页面自动生成。

方案:

基本思路

使用插件增加一种blueprint(蓝图),该blueprint出现的“创建”的dialog中;

用户可以根据blueprint的提示完成文档模板的创建;

blueprint根据xml模板生成内容,xml支持参数化设置。

具体实现

官方示例:

标题URL实用性
write-a-simple-confluence-space-blueprint

https://developer.atlassian.com/server/confluence/write-a-simple-confluence-space-blueprint/#step-4--create-a-home-page-for-your-space-blueprint

 

write-an-intermediate-blueprint-pluginhttps://developer.atlassian.com/server/confluence/write-an-intermediate-blueprint-plugin/#step-1--add-a-variable-and-some-instructional-text-to-the-template 
write-an-advanced-blueprint-plugin

https://developer.atlassian.com/server/confluence/write-an-advanced-blueprint-plugin/#before-you-begin

 

 

 

 

 

 

 

网上找的升级版示例:

标题URL实用性
hello-blueprint

https://bitbucket.org/atlassian/hello-blueprint/src/master/

 

 

 

 

 

 

 

 

其他辅助资料:

https://developer.atlassian.com/server/confluence/blueprint-module/

https://developer.atlassian.com/server/confluence/content-template-module/

confluence-create-content plugin的jar包、源码下载地址

https://packages.atlassian.com/maven-public/com/atlassian/confluence/plugins/

实际过程:

space-blueprint可以使用多级模板,直接创建子页面。

但是blueprint无法使用,因此不能通过blueprint直接创建子页面,最后在onBlueprintCreateEvent中通过Java代码添加的子页面。

 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值