ThemeBuilder for Confluence Server and DC

Link

This macro creates a link to the given url, performing any required replacements to be used in ThemeBuilder panels; it may not work if added in the Confluence editor.

Usage

Storage Format

<ac:macro ac:name="panel-link">
<ac:parameter ac:name="parameter">value</ac:parameter>
<ac:rich-text-body>
<!-- link name -->
</ac:rich-text-body>
</ac:macro>

Wiki Markup

{panel-link:parameter=value}
link name
{panel-link}

Parameter

Name

Description

Type

Default

Required

link

Link

The link (may be fully-qualified, relative, or a spacekey:pagename)

string

error

class

CSS Class

The CSS class to add to the link

string

error

id

HTML ID

The HTML id to add to the link

string

error

tooltip

Tooltip

The tooltip to use on the link

string

error

flag

Flag

A list of flags, one of which must be defined for the content to be displayed

string

error

notflag

Not Flag

A list of flags which must not be defined for the content to be displayed

string

error

Basic Example

Add a link to a web site.

<ac:macro ac:name="panel-link">
<ac:parameter ac:name="link">http://www.adaptavist.com</ac:parameter>
<ac:rich-text-body>
Adaptavist.com
</ac:rich-text-body>
</ac:macro>
{panel-link:link=http://www.adaptavist.com}
Adaptavist.com
{panel-link}

Result

A link is displayed using the details in the macro.

link 01

Advanced Example

Add an image link to a Confluence page.

<ac:macro ac:name="panel-link">
<ac:parameter ac:name="link">AD:Parent</ac:parameter>
<ac:rich-text-body>
<ac:macro ac:name="image">
<ac:parameter ac:name="resource">MYSKIN::chalet.jpg</ac:parameter>
</ac:macro>
</ac:rich-text-body>
</ac:macro>
{panel-link:link=AD:Parent}
{image:MYSKIN::chalet.jpg}
{panel-link}

Result

An image is displayed that links to the page added in the link macro.

link 02