Traffic Lights using space metadata

Traffic Lights using space metadata

Overview

An example of using metadata is creating traffic lights that can be used for your page content status. The traffic lights use emoticons 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.

Space Metadata list macro - metadata values added in macro body

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

Rendered metadata on the page

Each metadata value can be retrieved in the space (or in another space) by using the space-metadata-from macro:

Macro editor - Space Metadata from macro

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:

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

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

Related pages

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.