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

Text Preview Entry

Table of contents

Description:

This key represents a text preview entry type for displaying static text on Cards in the Collection browser, Structures, and Snippets.

The value is an object that contains a text property with a string value. This displays static text in card previews.

Appears in:
└── Preview Entry
    └── Text Preview Entry
Type:
Object
Properties:
textstring Required#

This key defines the static text string to display in a text preview entry.

The value is a string that specifies static text to display on Cards in the Collection browser, Structures, and Snippets.

Show examplesHide examples

In this example, we have configured the text value to display a static fallback message.

Copied to clipboard
collections_config:
  blog:
    preview:
      text:
        - text: Untitled
{
  "collections_config": {
    "blog": {
      "preview": {
        "text": [
          {
            "text": "Untitled"
          }
        ]
      }
    }
  }
}
Examples:

In this example, we have configured a text preview entry to display static text.

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