Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel6
outlinefalse
typeflat
separatorpipe
printablefalse

Overview

A example of use of metadata is the creation of traffic lights that can be used for content based - with the traffic lights using emoticons as the metadata values. As the metadata value is stored as un-rendered markup, the reporting macros used to retrieve the metadata will render the markup on the pages they are used on.

Creating the traffic light metadata

To add the emoticons as values for the the space metadata value names for the traffic lights, use the {space-metadata-list} macro:.

...

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

...

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

...

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

The macro placeholder displayed is:

...

On the page the metadata value is displayed.

...

The emoticon defined by the un-rendered value for the Ideation metadata.

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

Metadata

...

examples

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "metadata_app_example"

Related

...

macros

Child pages (Children Display)
pageComala Metadata Macros
sorttitle
reversetrue
first4

Related documentation