Skip to end of metadata
Go to start of metadata

ThemeBuilder Macro - QueryString Macro

panel-querystring

Creates a link to the current page with an updated querystring. To be used in ThemeBuilder panels, will not work if added in the Confluence editor.

Categories: navigation

Usage

Storage Format

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

Wiki Markup

{panel-querystring:parameter=value}
	<!-- link name -->
{panel-querystring}

Parameter

Name

Description

Type

Default

Required

addquery

Add Query

The query string to add to the current url

string

 

(error)

removequery

Remove Query

The query string to remove to the current url

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)

Example

<ac:macro ac:name="panel-querystring">
  <ac:parameter ac:name="addquery">food=cheese</ac:parameter>
  <ac:rich-text-body>  
      Add Cheese
    </ac:rich-text-body>
</ac:macro> 
{panel-querystring:addquery=food=cheese}
	Add Cheese
{panel-querystring}

Result

When used on a page with spaceKey AD and page name Parent, the link when clicked changes this url

<domain>/display/AD/Parent

to

<domain>/pages/viewpage.action?title=Parent&food=cheese&spaceKey=AD

There is information in the url that can be used for additional functionality in the page.