Skip to end of metadata
Go to start of metadata

ThemeBuilder Macro - Panel Sitehome (Site Home Link)

panel-sitehome

Creates a link to the site home page

Categories: development

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

targetLink 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

Result

 

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}