---
title: "metadata-list macro"
canonical: "https://support.appfire.com/space/COMALACM/655758458/metadata-list%20macro"
format: markdown
---
> Macro (aura-html)

## Overview

The `metadata-list` macro allows the attachment of multiple pieces of metadata to an individual page.

> 📝 The macro is used for setting metadata values *not for* listing metadata values.

This <span style="color: #333333">allows multiple metadata values set and stored on an individual page to be referenced from other pages (see the </span><span style="color: #333333">[space-metadata-list macro](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/655890257)</span><span style="color: #333333"> for the equivalent functionality for spaces).</span>

## 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.<br>> ℹ️ Do not use a [reserved ](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/656579602)Confluence metadata name. |  |
| `hidden` |  | `false` | - `true` – metadata value is not displayed on current page
- `false` – metadata value is displayed on current page<br>> ℹ️ This option to hide or display the metadata values affects only the page that contains the `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<br>- `true`** **– any existing metadata values are removed
- `false` – any existing metadata values are retained |  |

## Usage

> Macro (excerpt)
> 
> To add multiple pieces of metadata to a page:
> 
> - Choose the [Metadata list](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/655758458) macro in the Confluence macro browser:
> 
> ![image](media://860f8d0a-962e-4eca-8ba4-525eea73bf06)
> 
> The macro editor lets you configure the macro.
> 
> ![image](media://07b67673-ed2d-4ec3-816f-814ae56bad2d)
> 
> 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 `metadata-list`** **macro placeholder:
> 
> ![image](media://98f63d52-1885-42c0-a6fb-32994399ed69)
> 
> 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](media://282170a5-2209-4436-932c-cba00178a816)
> 
> > ℹ️ The macro is used for setting metadata values, ***not for***** listing metadata values**.
> 
> > 📝 When using the macro to set metadata that is a date and time, Confluence search and CQL return the value as a **string **unless the metadata value is added in the following format: `yyyyMMddHHmmssSSS`. For example:
> > 📝 
> > 📝 - **Inauguration Date** with a value of `Feb 2019` or `08/09/2023` is returned as a string value and is not recognized as a date format

You can add a piece of this metadata from this page onto another page. For example, using the [metadata-from ](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/656578971)<span style="color: #000000">[macro](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/656578971)</span> to add a single piece of metadata or the [metadata-report ](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/656579099)<span style="color: #000000">[macro](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/656579099)</span> for multiple pieces of metadata.

## Reference markup

The following creates four individual metadata items and sets a value for each of them:

```plaintext
{metadata-list}
|| Name | Comala Metadata Plugin |
|| Version | 3.5.x |
|| Product Versions | Confluence 6.x |
|| Author(s) | Captain Comala |
{metadata-list}
```

The metadata values in this example include wiki markup. This is displayed on the page as a table:

![image](media://54c58538-fe85-472e-969d-d047b818618d)

<span style="color: #091e42">An optional </span>`orientation=horizontal`<span style="color: #091e42"> parameter changes the rendering to be horizontal. </span>

```plaintext
{metadata-list|orientation=horizontal}
|| Name | Comala Metadata Plugin |
|| Version | 3.5.x |
|| Product Versions | Confluence 6.x |
|| Author(s) | Captain Comala |
{metadata-list}
```

<span style="color: #091e42">It is displayed as:</span>

![image](media://7678639d-d473-4faa-8669-5685d30cbed0)

If you don't want the list of metadata displayed on the page, you can choose to add the "`hidden`" parameter.

```plaintext
{metadata-list|orientation=horizontal|hidden=true}
```

> 📝 The use of the "`hidden`" parameter does not affect the pages where the metadata is reused.

## Usage with the Comala Document Management app

The `metadata-list` macro is partially supported by the Comala Document Management app.

```plaintext
{trigger:pageupdated}
    	{metadata-list}
          || Name | Comala Metadata Plugin |
          || Version | 3.5.x |
          || Product Versions | Confluence 6.x |
          || Author(s) | Captain Comala |
        {metadata-list}
    {trigger}
```

If the macro is used at the workflow level in the Comala Document Management app, it should not be used together with the orientation parameter. For example, {metadata-list|orientation=horizontal}. This is unsupported and causes an error.

## Related macros

> Macro (children)

## Related documentation

- [Adding metadata to a page](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/656676899)
- [Retrieving and displaying page metadata](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/656677227)