Link
This macro creates a link to the given URL, performing any required replacements 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 | ||
class | CSS Class | The CSS class to add to the link | string | ||
id | HTML ID | The HTML ID to add to the link | string | ||
tooltip | Tooltip | The Tooltip to use on the link | string | ||
flag | Flag | A list of flags, one of which must be defined for the content to be displayed | string | ||
notflag | Not Flag | A list of flags that must not be defined for the content to be displayed | string |
Basic Example
Add a link to a website.
<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 displays using the details in the macro.
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 displays that links to the page added in the link macro.