This key defines the template string to use in a template preview entry.
The value is a string that specifies a template with placeholders (e.g., {name}, {date}) that will be replaced with data values when displayed on Cards in the Collection browser, Structures, and Snippets.
Appears in
└── Template Preview Entry
└── templateType
string Required
Examples
In this example, we have configured the template value to display author and date.
Copied to clipboard
collections_config:
blog:
preview:
text:
- template: '{author} - {date}'{
"collections_config": {
"blog": {
"preview": {
"text": [
{
"template": "{author} - {date}"
}
]
}
}
}
}