QueryString
This macro creates a link to the current page with an updated querystring. Use only in ThemeBuilder panels; the macro will not work in Confluence editor.
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 | ||
| removequery | Remove Query | The query string to remove to the current URL | 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 |
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.
link:[<domain>/display/AD/Parent]
to
link:[<domain>/pages/viewpage.action?title=Parent&food=cheese&spaceKey=AD]
There is information in the URL that can be used for additional functionality on the page.