我可以在Confluence中为我的文字添加按钮吗?

时间:2016-07-12 10:56:24

标签: button confluence

Atlassian Design Product Components website tells about buttons

enter image description here

有没有办法在汇合页面中使用它们?

2 个答案:

答案 0 :(得分:2)

这是我刚刚发现的一个小黑客。它并不理想,但它在紧要关头看起来相当不错,不需要宏或任何奇怪的东西。

只需创建一个1x1表并在其中添加一个链接。您可以使用标题单元格来调整外观:

enter image description here

答案 1 :(得分:1)

我设法将这些按钮添加为用户宏。有blog article with a step-by-step description

  1. 转到Confluence Admin > User Macros
  2. 添加新用户宏
  3. 输入如下代码:

    ## Macro title: AUI Button
    ## Macro has a body: N
    ## @param Title:title=Title|type=string|required=true
    ## @param URL:title=URL|type=string|required=true
    <a href="$paramURL">
        <button class="aui-button aui-button-primary">
            $paramTitle
        </button>
    </a>
    
  4. 然后,您可以从宏列表中选择用户宏,并输入链接名称和目的地。
相关问题