This key represents a template preview entry type for displaying formatted text using a template on Cards in the Collection browser, Structures, and Snippets.
The value is an object that contains a template property with a string value. This displays formatted text using template syntax (e.g., {name}) in card previews.
Appears in
├── Preview Entry
│ └── Template Preview Entry
├── Text Input
│ └── options
│ ├── icon_color
│ │ └── Template Preview Entry
│ └── icon_background_color
│ └── Template Preview Entry
├── text
│ └── Template Preview Entry
├── subtext
│ └── Template Preview Entry
├── image
│ └── Template Preview Entry
├── icon
│ └── Template Preview Entry
├── icon_color
│ └── Template Preview Entry
├── icon_background_color
│ └── Template Preview Entry
└── background_color
└── Template Preview EntryType
Object
Properties
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.
Show examplesHide examples
In this example, we have configured the template value to display author and date.
collections_config:
blog:
preview:
text:
- template: '{author} - {date}'{
"collections_config": {
"blog": {
"preview": {
"text": [
{
"template": "{author} - {date}"
}
]
}
}
}
}Examples
In this example, we have configured a template preview entry to display formatted text.
collections_config:
blog:
preview:
text:
- template: '{author} - {date}'{
"collections_config": {
"blog": {
"preview": {
"text": [
{
"template": "{author} - {date}"
}
]
}
}
}
}