Show If
Description
This macro will show its contents to the viewer if the context matches the parameters specified.
Parameters
Name | Required | Available In | Default Value | Description |
---|---|---|---|---|
Match Using | | Server & Cloud | any | If set to |
Users | | Server & Cloud |
| The list of user(s) to match, separated by comma e.g.: 'bob,marley' will match both bob and marley. |
Special Username | | Server |
| The user to match, using special usernames:
|
User Groups | | Server & Cloud |
| The group(s) to match, separated by comma. e.g.: 'confluence-users' will match all logged in users. |
Space Permissions | | Server |
| This property allows you to define whether the content inside this macro is hidden to a certain user based on his space permissions. This can be done by either of the following:
These are the permission types:
|
Content Types | | Server |
| The (list of) page types. May be:
|
Display Types | | Server |
| This property allows the user to show content only in a document that has been exported to PDF or Word and not on the Confluence page. The (list of) display modes:
|
Current Space | | Server |
| The (list of) spaces this will be displayed in. |
Action Types | | Server |
| The action taking place:
|
Labels | | Server |
| The list of labels to test are present or absent. |
HTTP Headers | | Server |
| The list of request header "name:value" pairs to check for. This can either be of the form "name:exact value" or "name::regular expression" (note the double "::" for regular expressions). For example, to check if the current browser is FireFox, set to This will confirm that the 'User-Agent' header contains 'Firefox'. What headers are available will depend on the browser being used. |
Scope | | Server |
| (Since 1.6.0) Tests if the current location is in the specified scope. You can specify a particular page, or set the scope to the children, descendants or ancestors of another page:
|
Trim | | Server | true | If set to |
Tutorial Examples