Atlassian连接动态内容模块-非字符串参数

问题描述

我正在为Confluence云开发一个Atlassian连接的动态内容模块宏。我希望能够为插件配置参数,但是似乎未在url中设置非字符串类型的参数。

例如,在“ htmlAttachment”,“ frameborder”和“ scrolling”参数下方的atlassian-connect.json文件中,未将参数注入“ url”(可通过​​配置页面设置“ frameborder”和“ scrolling”为宏)。另外,HTML附件似乎也无法在页面提取附件。

"modules": {

"dynamicContentMacros": [

{

"url": "/foo?page={content.id}&space={space.id}&htmlAttachment={htmlAttachment}&scrolling={scrolling}&frameborder={frameborder}&width={width}&height={height}","parameters": [

{

"identifier": "htmlAttachment","name": {

"value": "HTML Attachment"

},"description": {

"value": "The HTML file to embed"

},"type": "attachment","defaultValue" : "","required": false,"multiple": false,"hidden": false

},{

"identifier": "width","name": {

"value": "Width"

},"type": "string",{

"identifier": "height","name": {

"value": "Height"

},{

"identifier": "scrolling","name": {

"value": "Scrollling"

},"description": {

"value": "Choose if scrolling should be enabled"

},"type": "ENUM","required": true,"defaultValue": "no","values": [

"yes","no","auto"

],{

"identifier": "frameborder","name": {

"value": "Frameborder"

},"description": {

"value": "Surround IFrame with a border"

},"type": "boolean","hidden": false

}

],...

}

任何想法都会受到赞赏。

感谢和问候, 安德鲁

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)