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

tags

Table of contents

Description:

This key defines tags displayed on Cards in the Collection browser, Structures, and Snippets.

Appears in:
├── preview
│   └── tags
└── picker_preview
    └── tags
Type:
Array<tags[*]>
Items:
[*]string#

This key represents an individual tag string in the preview.tags array.

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

Show examplesHide examples

In this example, we have configured a tag for Cards in the blog Collection.

Copied to clipboard
collections_config:
  blog:
    preview:
      tags:
        - featured
{
  "collections_config": {
    "blog": {
      "preview": {
        "tags": [
          "featured"
        ]
      }
    }
  }
}
Examples:

In this example, we have configured tags for Cards in the blog Collection to display category tags.

Copied to clipboard
collections_config:
  blog:
    preview:
      tags:
        - featured
        - tutorial
{
  "collections_config": {
    "blog": {
      "preview": {
        "tags": [
          "featured",
          "tutorial"
        ]
      }
    }
  }
}
Open in a new tab