The Adaptavist Group LogoDocumentation

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}
ParameterNameDescriptionTypeDefaultRequired
addqueryAdd QueryThe query string to add to the current URLstring
removequeryRemove QueryThe query string to remove to the current URLstring
classCSS ClassThe CSS class to add to the linkstring
idHTML IDThe HTML ID to add to the linkstring
tooltipTooltipThe Tooltip to use on the linkstring
flagFlagA list of flags, one of which must be defined for the content to be displayedstring
notflagNot FlagA list of flags that must not be defined for the content to be displayedstring

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.

Search documentation

Start typing to search the docs.