ThemeBuilder for Confluence Server and DC

Panel Sitehome

This macro creates a link to the site home page.

Usage

Storage Format

<ac:macro ac:name="panel-sitehome">
<ac:parameter ac:name="parameter">value</ac:parameter>
<ac:rich-text-body>
Link Title
</ac:rich-text-body>
</ac:macro>

Wiki Markup

{panel-sitehome:parameter=value}Link Title{panel-sitehome}

Parameter

Name

Description

Type

Default

Required

target

Link Target

Force the link to point at the Dashboard, Site Home or current Space Home. If not specified the link will go to the Confluence default, either Dashboard or Site Home.

Values:
- dashboard
- sitehome
- spacehome

string

error

class

CSS Class

The CSS class to add to 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

Example

Use the 'panel-sitehome' macro with 'panel-logo' macro to add an image link in the header panel that goes to the Site Home page.

<ac:macro ac:name="panel-sitehome">
<ac:parameter ac:name="target">sitehome</ac:parameter>
<ac:rich-text-body>
<ac:macro ac:name="panel-logo">
<ac:parameter ac:name="tooltip">Site Home</ac:parameter>
</ac:macro>
</ac:rich-text-body>
</ac:macro>
{panel-sitehome:target=sitehome}
Site Home
{panel-sitehome}

Code as seen in the ThemeBuilder Skin Editor Header panel

panel sitehome 01

Result

panel sitehome 02

Space Home Example

Add a link to the current Space Home page.

<ac:macro ac:name="panel-sitehome">
<ac:parameter ac:name="target">spacehome</ac:parameter>
<ac:rich-text-body>
Space Home
</ac:rich-text-body>
</ac:macro>
{panel-sitehome:target=spacehome}
Space Home
{panel-sitehome}