Metadata - Fluid Topics - Latest

Jinja Connector Reference Guide

Category
Reference Guides
Audience
public
Version
Latest

It is possible to add custom and built-in metadata to the source JSON or YAML file as follows:

{
  "meta": {
    "title": "My Title",
    "editorialType": "article"
  }
}

Metadata can also be part of the Jinja template itself:

<html>
    <head>
        <meta name="country" content="France">
    </head>
</html>

Metadata keys can have multiple values:

<html>
    <head>
        <meta name="fruits" content="apples, bananas, pears" type="stringList">
    </head>
</html>

The default value separator for stringList is the comma.

Metadata keys can be hierarchical:

<html>
    <head>
        <meta name="location" content="World|Europe|France" type="stringTree">
    </head>
</html>

The default value separator for stringTree is the pipe.

Content publishers can define a custom value separator using the separator attribute.

For example:

<meta name="location" content="World/Europe/France" type="stringTree" separator="/">