connect
search

Title-level Syntax

AVAILABLE STARTING WITH V2022.5

About Title-level Syntax

This page contains details about the syntax that can be used to access Title properties and metadata.

Note

All previous constructions that were using title have been deprecated and replaced with entity. All existing templates and profiles in Connect have been migrated to use this syntax.

Title Properties

PropertyProperty (parents)Returns
entity.updatedByIdentity.parent[n].updatedByIdThe user UUID of the last user who updated the title.
entity.updatedAtentity.parent[n].updatedAtThe date of the last update made on the title.
entity.slugentity.parent[n].slugThe title slug. Note that it is automatically generated.
entity.parentIdentity.parent[n].parentIdThe UUID of the title entity or the parent's parent.
entity.organizationIdentity.parent[n].organizationIdThe organization UUID of the title entity or parent that it belongs to.
entity.nameentity.parent[n].nameThe name of the title entity or parent in Connect.
entity.identity.parent[n].idThe UUID of the title entity or parent.
entity.entityTypeIdentity.parent[n].entityTypeIdThe entity type of the title or parent.
entity.createdByIdentity.parent[n].createdByIdThe user UUID of the creator of the title.
entity.createdAtentity.parent[n].createdAtThe creation date of the title.

Examples

Title properties in Metadata Templates

Title properties
<id>{{entity.id}}</id>
<id>{{entity.name}}</id>
<id>{{entity.parentId}}</id>
<id>{{entity.entityTypeId}}</id>
<id>entity.organizationId</id>
<id>entity.createdAt</id>
<id>entity.updatedAt</id>
<id>entity.createdById</id>
<id>entity.updatedById</id>
{% comment %}<id>{{entity.parent.id}}</id>
<id>{{entity.parent.name}}</id>
<id>entity.parent.parentId</id>
<id>{{entity.parent.entityTypeId}}</id>
<id>entity.parent.organizationId</id>
<id>entity.parent.createdAt</id>
<id>entity.parent.updatedAt</id>
<id>entity.parent.createdById</id>
<id>entity.parent.updatedById</id>
<id>entity.parent.parent.parent.id</id>
<id>entity.parent.parent.parent.name</id>
<id>entity.parent.parent.parent.parentId</id>
<id>entity.parent.parent.parent.entityTypeId</id>
<id>entity.parent.parent.parent.organizationId</id>
<id>entity.parent.parent.parent.createdAt</id>
<id>entity.parent.parent.parent.updatedAt</id>
<id>entity.parent.parent.parent.createdById</id>
<id>entity.parent.parent.parent.updatedById</id>{% endcomment %}

Parent referencing in Metadata Templates

Parent referencing
<!--Child-->
<id>{{entity.id}}</id>
<name>{{entity.name}}</name>
<parentId>{{entity.parentId}}</parentId>
<entityTypeId>{{entity.entityTypeId}}</entityTypeId>
<organizationId>{{entity.organizationId}}</organizationId>
<createdAt>{{entity.createdAt}}</createdAt>
<updatedAt>{{entity.updatedAt}}</updatedAt>
<createdById>{{entity.createdById}}</createdById>
<updatedById>{{entity.updatedById}}</updatedById>
<!--First Parent-->
<id>{{entity.parent.id}}</id>
<name>{{entity.parent.name}}</name>
<parentId>{{entity.parent.parentId}}</parentId>
<entityTypeId>{{entity.parent.entityTypeId}}</entityTypeId>
<organizationId>{{entity.parent.organizationId}}</organizationId>
<createdAt>{{entity.parent.createdAt}}</createdAt>
<updatedAt>{{entity.parent.updatedAt}}</updatedAt>
<createdById>{{entity.parent.createdById}}</createdById>
<updatedById>{{entity.parent.updatedById}}</updatedById>
<!--Second Parent-->
<id>{{entity.parent.parent.name}}</id>
<!--Third Parent-->
<id>{{entity.parent.parent.parent.id}}</id>
<name>{{entity.parent.parent.parent.name}}</name>
<parentId>{{entity.parent.parent.parent.parentId}}</parentId>
<entityTypeId>{{entity.parent.parent.parent.entityTypeId}}</entityTypeId>
<organizationId>{{entity.parent.parent.parent.organizationId}}</organizationId>
<createdAt>{{entity.parent.parent.parent.createdAt}}</createdAt>
<updatedAt>{{entity.parent.parent.parent.updatedAt}}</updatedAt>
<createdById>{{entity.parent.parent.parent.createdById}}</createdById>
<updatedById>{{entity.parent.parent.parent.updatedById}}</updatedById>
<!--13th Parent-->
<id>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.id}}</id>
<name>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.name}}</name>
<parentId>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parentId}}</parentId>
<entityTypeId>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.entityTypeId}}</entityTypeId>
<organizationId>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.organizationId}}</organizationId>
<createdAt>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.createdAt}}</createdAt>
<updatedAt>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.updatedAt}}</updatedAt>
<createdById>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.createdById}}</createdById>
<updatedById>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.updatedById}}</updatedById>

Title Metadata

PropertyReturns
entity.attributes['locale']['Number']A numeric value metadata field.
entity.attributes['locale']['String']A string value metadata field.
entity.attributes['locale']['Boolean']A boolean value metadata field.
entity.attributes['locale']['Date']A date value metadata field.
entity.attributes['locale']['Array']An array value metadata field.
entity.attributes['locale']['Tag']The file designation ID (a tag ID). This tag can be associated with a source file or a deliverable file.
entity.attributes['locale']['File']A file ID.
entity.attributes['locale']['Reference']The reference ID (a title ID).
entity.attributes['locale’][‘_Reference_’].attributes['en_US’][‘_Attribute_’]all of the aboveCan return any of the above attributes, as they are metadata values that are available on another title.

Examples

Parent referencing in Metadata Templates

Parent referencing
<!--Child-->
<number>{{entity.attributes['en-US']['Number13']}}</number>
<string>{{entity.attributes['en-US']['String13']}}</string>
<boolean>{{entity.attributes['en-US']['Boolean13']}}</boolean>
<date>{{entity.attributes['en-US']['Date13']}}</date>
<array>{{entity.attributes['en-US']['Array13']}}</array>
<tag>{{entity.attributes['en-US']['Tag13']}}</tag>
<file>{{entity.attributes['en-US']['File13']}}</file>
<reference>{{entity.attributes['en-US']['Reference13']}}</reference>
<refcustom>{{entity.attributes['en-US']['Reference13'].attributes['en_US']['NumberSub']}}</refcustom>
<number>{{entity.attributes['global']['Number13 Global']}}</number>
<string>{{entity.attributes['global']['String13 Global']}}</string>
<boolean>{{entity.attributes['global']['Boolean13 Global']}}</boolean>
<date>{{entity.attributes['global']['Date13 Global']}}</date>
<array>{{entity.attributes['global']['Array13 Global']}}</array>
<tag>{{entity.attributes['global']['Tag13 Global']}}</tag>
<file>{{entity.attributes['global']['File13 Global']}}</file>
<reference>{{entity.attributes['global']['Reference13 Global']}}</reference>
<refcustom>{{entity.attributes['global']['Reference13 Global'].attributes['en_US']['StringSub']}}</refcustom>
<!--First Parent-->
<number>{{entity.parent.attributes['afza']['Number12']}}</number>
<string>{{entity.parent.attributes['afza']['String12']}}</string>
<boolean>{{entity.parent.attributes['afza']['Boolean12']}}</boolean>
<date>{{entity.parent.attributes['afza']['Date12']}}</date>
<array>{{entity.parent.attributes['afza']['Array12']}}</array>
<tag>{{entity.parent.attributes['afza']['Tag12']}}</tag>
<file>{{entity.parent.attributes['afza']['File12']}}</file>
<reference>{{entity.parent.attributes['afza']['Reference12']}}</reference>
<refcustom>{{entity.parent.attributes['afza']['Reference12'].attributes['en_US']['NumberSub']}}</refcustom>
<number>{{entity.parent.attributes['global']['Number12 Global']}}</number>
<string>{{entity.parent.attributes['global']['String12 Global']}}</string>
<boolean>{{entity.parent.attributes['global']['Boolean12 Global']}}</boolean>
<date>{{entity.parent.attributes['global']['Date12 Global']}}</date>
<array>{{entity.parent.attributes['global']['Array12 Global']}}</array>
<tag>{{entity.parent.attributes['global']['Tag12 Global']}}</tag>
<file>{{entity.parent.attributes['global']['File12 Global']}}</file>
<reference>{{entity.parent.attributes['global']['Reference12 Global']}}</reference>
<refcustom>{{entity.parent.attributes['global']['Reference12 Global'].attributes['en_US']['StringSub']}}</refcustom>
<!--Second Parent-->
<number>{{entity.parent.parent.attributes['gr-EL']['Number11']}}</number>
<string>{{entity.parent.parent.attributes['gr-EL']['String11']}}</string>
<boolean>{{entity.parent.parent.attributes['gr-EL']['Boolean11']}}</boolean>
<date>{{entity.parent.parent.attributes['gr-EL']['Date11']}}</date>
<array>{{entity.parent.parent.attributes['gr-EL']['Array11']}}</array>
<tag>{{entity.parent.parent.attributes['gr-EL']['Tag11']}}</tag>
<file>{{entity.parent.parent.attributes['gr-EL']['File11']}}</file>
<reference>{{entity.parent.parent.attributes['gr-EL']['Reference11']}}</reference>
<refcustom>{{entity.parent.parent.attributes['gr-EL']['Reference11'].attributes['en_US']['NumberSub']}}</refcustom>
<number>{{entity.parent.parent.attributes['global']['Number11 Global']}}</number>
<string>{{entity.parent.parent.attributes['global']['String11 Global']}}</string>
<boolean>{{entity.parent.parent.attributes['global']['Boolean11 Global']}}</boolean>
<date>{{entity.parent.parent.attributes['global']['Date11 Global']}}</date>
<array>{{entity.parent.parent.attributes['global']['Array11 Global']}}</array>
<tag>{{entity.parent.parent.attributes['global']['Tag11 Global']}}</tag>
<file>{{entity.parent.parent.attributes['global']['File11 Global']}}</file>
<reference>{{entity.parent.parent.attributes['global']['Reference11 Global']}}</reference>
<refcustom>{{entity.parent.parent.attributes['global']['Reference11 Global'].attributes['en_US']['StringSub']}}</refcustom>
<!--Third Parent-->
<number>{{entity.parent.parent.parent.attributes['en-US']['Number10']}}</number>
<string>{{entity.parent.parent.parent.attributes['en-US']['String10']}}</string>
<boolean>{{entity.parent.parent.parent.attributes['en-US']['Boolean10']}}</boolean>
<date>{{entity.parent.parent.parent.attributes['en-US']['Date10']}}</date>
<array>{{entity.parent.parent.parent.attributes['en-US']['Array10']}}</array>
<tag>{{entity.parent.parent.parent.attributes['en-US']['Tag10']}}</tag>
<file>{{entity.parent.parent.parent.attributes['en-US']['File10']}}</file>
<reference>{{entity.parent.parent.parent.attributes['en-US']['Reference10']}}</reference>
<refcustom>{{entity.parent.parent.parent.attributes['en-US']['Reference10'].attributes['en_US']['NumberSub']}}</refcustom>
<number>{{entity.parent.parent.parent.attributes['global']['Number10 Global']}}</number>
<string>{{entity.parent.parent.parent.attributes['global']['String10 Global']}}</string>
<boolean>{{entity.parent.parent.parent.attributes['global']['Boolean10 Global']}}</boolean>
<date>{{entity.parent.parent.parent.attributes['global']['Date10 Global']}}</date>
<array>{{entity.parent.parent.parent.attributes['global']['Array10 Global']}}</array>
<tag>{{entity.parent.parent.parent.attributes['global']['Tag10 Global']}}</tag>
<file>{{entity.parent.parent.parent.attributes['global']['File10 Global']}}</file>
<reference>{{entity.parent.parent.parent.attributes['global']['Reference10 Global']}}</reference>
<refcustom>{{entity.parent.parent.parent.attributes['global']['Reference10 Global'].attributes['en_US']['StringSub']}}</refcustom>
<!--13th Parent-->
<number>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['roCus-Cus']['Number']}}</number>
<string>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['roCus-Cus']['String']}}</string>
<boolean>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['roCus-Cus']['Boolean']}}</boolean>
<date>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['roCus-Cus']['Date']}}</date>
<array>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['roCus-Cus']['Array']}}</array>
<tag>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['roCus-Cus']['Tag']}}</tag>
<file>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['roCus-Cus']['File']}}</file>
<reference>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['roCus-Cus']['Reference']}}</reference>
<refcustom>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['roCus-Cus']['Reference'].attributes['en_US']['Number13']}}</refcustom>
<number>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['global']['Number Global']}}</number>
<string>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['global']['String Global']}}</string>
<boolean>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['global']['Boolean Global']}}</boolean>
<date>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['global']['Date Global']}}</date>
<array>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['global']['Array Global']}}</array>
<tag>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['global']['Tag Global']}}</tag>
<file>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['global']['File Global']}}</file>
<reference>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['global']['Reference Global']}}</reference>
<refcustom>{{entity.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.attributes['global']['Reference Global'].attributes['en_US']['Number13']}}</refcustom>

LiquidJS syntax in Metadata Templates

LiquidJS syntax
<for>
{% for item in entity.attributes['global']['ArraySub Global'] reversed %}
- {{ item }}
{% endfor %}
</for>
<for2>
{% for item in entity.attributes['global']['ArraySub Global'] %}
<item>{{item}}</item>
{% endfor %}
</for2>
<assign>
{% assign parentAlias = entity.parent %}
{{ parentAlias.id }}
{{ parentAlias.name }}
</assign>
<assign2>
{{entity.tags['Movie']['duration']}}
{% assign hours = entity.tags['Movie']['duration'] | divided_by: 3600 %}
{% assign minutes = entity.tags['Movie']['duration'] | divided_by: 60 | modulo: 60 %}
{% assign hoursAndMinutesInSeconds = hours | times: 60 | plus: minutes | times: 60 %}
{% assign seconds = entity.tags['Movie']['duration'] | minus: hoursAndMinutesInSeconds | floor %}
<br></br>
Hours: {{hours}}
Minutes: {{minutes}}
InSeconds: {{hoursAndMinutesInSeconds}}
Seconds: {{seconds}}
</assign2>
<if>
{% if entity.name == "Sub-Parent" or entity.name == "Shoes" %}
This is a Title!
{% else %}
This is another Title!
{% endif %}
</if>
<unless>
{% unless entity.name == "Parent" %}
This is a child.
{% endunless %}
</unless>
<case>
{% case entity.name %}
{% when 'Sub--Parent' %}
Instance!
{% else %}
Not an instance!
{% endcase %}
</case>

Metadata value types in Metadata Templates

Metadata value types
<!--String-->
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['en_US']['String']}}</refcustom>
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['global']['String Global']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['en_US']['String']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['global']['String Global']}}</refcustom>
<!--Number-->
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['en_US']['Number']}}</refcustom>
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['global']['Number Global']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['en_US']['Number']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['global']['Number Global']}}</refcustom>
<!--Boolean-->
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['en_US']['Boolean']}}</refcustom>
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['global']['Boolean Global']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['en_US']['Boolean']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['global']['Boolean Global']}}</refcustom>
<!--Array-->
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['en_US']['Array']}}</refcustom>
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['global']['Array Global']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['en_US']['Array']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['global']['Array Global']}}</refcustom>
<!--Date-->
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['en_US']['Date']}}</refcustom>
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['global']['Date Global']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['en_US']['Date']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['global']['Date Global']}}</refcustom>
<!--Tag-->
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['en_US']['Tag']}}</refcustom>
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['global']['Tag Global']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['en_US']['Tag']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['global']['Tag Global']}}</refcustom>
<!--Reference-->
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['en_US']['Reference2'].attributes['en_US']['StringSub']}}</refcustom>
<refcustom>{{entity.attributes['en-US']['Reference'].attributes['global']['Reference2 Global'].attributes['global']['StringSub Global']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['en_US']['Reference2'].attributes['en_US']['StringSub']}}</refcustom>
<refcustom>{{entity.attributes['global']['Reference Global'].attributes['global']['Reference2 Global'].attributes['global']['StringSub Global']}}</refcustom>
Templates SyntaxMedia Item-level Syntax