...
Excerpt | ||
---|---|---|
| ||
Define metadata properties |
The {set-metadata} macro is used to define metadata key=value
pairs which are stored at the content-level (page or blog post).
The values can later be retrieved via the {the get-metadata} macrometadata macro, or any other plugin capable of reading metadata. In addition, the values can be used as as Value References in any macro or feature which supports them.
Where to use it?
Optional.
One or more {setset-metadata} macros can be put in a {trigger} macro.
Parameters
Parameters | Required | Default | Notes |
---|---|---|---|
first unnamed | The metadata key (name by which the value can be accessed).
| ||
macro body | The metadata value
| ||
|
| Should the macro body contents be trimmed (remove whitespace)?
| |
| current page | Where should the metadata be stored (default = current page)?
Note: This parameter only works on pages, not blog posts. |
...
...retrieving later
You can either use the {get-metadata} macro, if you want to output the value in normal wiki content ( or a macro that supports such content):
Code Block | ||||
---|---|---|---|---|
| ||||
This document was created by:
[~{get-metadata:Document Author}] |
Or a Value Reference (if applicable)
Code Block | ||||
---|---|---|---|---|
| ||||
This document was created by:
[~@Document Author@] |
.
0
... using Confluence Search
Metadata values created with the {set-metadata} macro are only indexed by Confluence and appear in the Confluence search if the Comala Metadata app is installed.
All examples
...