Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

The metadata-from macro is the simplest macro to get a piece of metadata from another page onto the current one.

The macro can only be used to retrieve the value of a single metadata value name.

Parameters

Parameter

Required

Default

Notes

Version

value-name

Image Removed

(tick)


The value name of the metadata to retrieve. Any wiki format that is part of the metadata value will be rendered on the current page.


page

@self

The page where the value name of the metadata has been added.

Default is to the current page.


...

Excerpt

To retrieve a single metadata value from a page, choose the Metadata from  macro from the Confluence macro browser:

Image RemovedImage Added

The macro editor allows you to configure the macro.

metadata-from macro editor dialogue box options

The macro requires you to add both:

  • the metadata value name

  • the source page for the metadata name. If the metadata being retrieved is from the current page you need to add @self to Insert the macro.

The macro will retrieve the metadata value and display on the current page.

If the metadata includes any wiki formatting as part of the value then this will be rendered on the current page together with the value.

In the example the value of the metadata Division has been defined using the Comala Metadata metadata macro.

Image RemovedImage Added

On the page, the metadata value is retrieved using the metadata-from macro.

In this example, the display would simply be the value of the metadata Division filtered to be from the page Project initiation Document.

...