---
title: "Traffic Lights using space metadata"
canonical: "https://support.appfire.com/space/COMALACM/655891829/Traffic%20Lights%20using%20space%20metadata"
format: markdown
---
> Macro (aura-html)

## Overview

An example of using metadata is creating traffic lights that can be used for your page content status. The traffic lights use[ emoticons](https://confluence.atlassian.com/doc/symbols-emoticons-and-special-characters-136870.html) as the metadata values. As the metadata value is stored as un-rendered markup, the reporting macros used to retrieve the metadata render the markup on the pages they are used on.

## Creating the traffic light metadata

Use the space-metadata-list macro to add the emoticons as values for the space metadata value names for the traffic lights.

![image](media://e1ab4642-f397-4a96-a58e-e501a8298ea5)

The values and the metadata value names are added to the space and displayed on the page where the macro has been added:

![image](media://2a602175-9415-4515-8534-78763e08d5af)

Each metadata value can be retrieved in the space (or in another space) by using the [space-metadata-from ](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/655890479)macro:

![image](media://5c22a9f1-ea72-4b85-b2da-1b7f5bc5f4e2)

The macro inserted above is used to retrieve the value of the `Ideation` metadata from the space with the space key `PEOP`.

The macro placeholder displayed is:

![image](media://db2bb03b-e843-4589-bcf5-0fa865fb2b55)

On the page, the emoticon value is displayed and rendered for the **Ideation** metadata:

![image](media://0253ef77-d140-4ab3-92e3-e83594d18ae8)

Once defined, the space metadata can be used in page templates, for example, here, by adding the traffic metadata value names as choices from drop-down menus.

## Related macros

- [space-metadata macro](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/656578849)
- [space-metadata-from macro](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/655890479)
- [space-metadata-list macro](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/655890257)

## Related pages

- [Using metadata in a space](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/655758361)
- [Retrieving and displaying space metadata](https://appfire.atlassian.net/wiki/spaces/COMALACM/pages/655758622)