{show-if}
Plugin: Visibility Plugin
This macro will show its contents to the viewer if the context matches the parameters specified.
Usage
{show-if:[parameters]}
Hidden content.
{show-if}
Parameters
| Name | Required | Default | Description |
|---|---|---|---|
| type(s) | | The (list of) page types. May be:
| |
| display(s) | | The (list of) display modes. May be:
| |
| space(s) | | The (list of) spaces this will be displayed in. | |
| action(s) | | The action taking place.
| |
| label(s) | | The list of labels to test are present or absent. Syntax details. | |
| header | | 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 'header=User-Agent::.*Firefox.*' This will confirm that the 'User-Agent' header contains 'Firefox'. What headers are available will depend on the browser being used. | |
| scope | | (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, descendents or ancestors of another page:
| |
| trim | | true
| If set to false, the content will not be trimmed before being output (if appropriate). |
| match | | any
| If set to 'all', then all items listed must match. |
Discussions