Overview
The {get-metadata}
macro is used on wiki pages (or content rendered to wiki pages) to retrieve and display Value References, including:
- Attribute References
- Metadata references
- Page Property References
- Parameter References
- Supplier References
- Page and User references
Where to use it?
Optional.
One or more {get-metadata}
macros can be used in wiki content (pages, blog posts).
It can also be used in macros that render wiki content in the context of pages and blog posts.
-
add-comment macro — Comment on a page or blog post
-
increment-metadata macro — Increment a metadata value to support custom versions (available from v6.11+)
-
pagefooter macro — Add content to page footer
-
pageheader macro — Add content to page header
-
send-email macro — Send an email
-
set-message macro — Add/remove a page message
-
workflow macro — Defines a workflow tempalte
It can also be used in page templates and blueprints.
Parameters
Parameter | Required | Default | Notes | Ver |
---|---|---|---|---|
| The metadata or value reference to display Note
| 3.0.3+ |
Example
To retrieve a value reference called @Project Lead@
, you would use the following (note: no @
symbols):
{get-metadata:name=Project Lead}
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
-
Using set-message and metadata to display different information for the draft and published content — Using the
view
parameter of the{set-message}
macro to display a different metadata when users view the draft or published versions