Key/Value Field - Documentation topics on: fields,key,key value,.

Key/Value Field

Key / Value fields provide an easy way to add non-structured information to your content.

This information is handled using key/value pairs that get stored in the content as a map than can then easily be displayed on a widget.

This field is helpful in creating a table of features for content.

Go to the Structure Manager and click on Add New Field.

Select Key/Value from the field types menu.

Once added, while editing content you can add key/value pairs to each piece of content.

These can also be deleted and / or reordered.

To display the key/value fields on a page, access the field by the variable name and then loop through the map returned.

#foreach($mapEntry in $
$mapEntry.key : $mapEntry.value