Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel3
minLevel2
absoluteUrltrue
excludeSee also
typeflat
separatorpipe

Overview

The space-metadata-list macro allows the user to attach multiple pieces of metadata to a space with one macro (see the metadata-list macro for the equivalent functionality for pages)

Parameters

Parameter

Required

Default

Notes

Version

unnamed first parameter(s)



No parameter is required. The metadata names and values are added to the body of the macro.

Info

Do not use any reserved Confluence metadata names or words.


hidden


false

  • true – metadata value is not displayed on current page

  • false – metadata value is displayed on current page

(blue star)
Info

This option to hide or display the metadata values affects only the page that contains the space-metadata-list macro. It does not affect any pages where the metadata is reused.


orientation


vertical

  • vertical – metadata values are displayed vertically

  • horizontal – metadata values are displayed horizontal


clear


false

Clears the values for any metadata on the page on adding the macro to the page

  • true– any existing metadata values are removed

  • false – any existing metadata values are retained


Usage

Excerpt

To add multiple pieces of metadata to a space, choose the Space Metadata list macro in the Confluence macro browser:

Image RemovedImage Added

The macro editor allows you to configure the macro.

The macro editor only includes the following options for the macro:

  • display metadata as a vertical or horizontal list

  • hide the metadata from being displayed on this page

  • clear any existing metadata values of the page before setting the new metadata and values

You must Insert the macro to add the metadata names and their values using the space-metadata-list macro placeholder:

The metadata name and value can be plain text or include simple wiki markup.

In the example above the metadata and their values are rendered in a table on the page:

Image RemovedImage Added

Existing metadata values can be cleared on adding the macro to the page by checking the Clear value option in the macro editor.

Info
Note - this

This macro is for setting metadata values for the space, not for listing existing metadata values.

When using the macro to set a metadata that is a date and time, Confluence search and CQL will return the value as a string value unless the metadata value is added in the following format yyyyMMddHHmmssSSS.

  • for example, creating a metadata End Date with a value of Dec 2023 or 08/09/2024 will be returned as a string value and is not recognized as a date format value

Reference Markup

Code Block
languagetext
{space-metadata-list}
|| Location | Europe |
|| Division | EMEA|
|| Headquarters | Bilbao, Espagne|
{space-metadata-list}

...