☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

key

Table of contents

Description:

This key defines the data key name to display in a key preview entry.

The value is a string that specifies the name of a data key whose value will be displayed on Cards in the Collection browser, Structures, and Snippets.

Appears in:
└── Key Preview Entry
    └── key
Type:
string Required
Examples:

In this example, we have configured the key value to display the title field.

Copied to clipboard
collections_config:
  blog:
    preview:
      text:
        - key: title
{
  "collections_config": {
    "blog": {
      "preview": {
        "text": [
          {
            "key": "title"
          }
        ]
      }
    }
  }
}
Open in a new tab