45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
{
|
|
// Corresponds to CF_ComponentSearchableText / Contentful_SearchableText.ts
|
|
name: "searchable_text",
|
|
description: "Searchable text with optional tag whitelist",
|
|
tags: ["content", "component", "search"],
|
|
category: "components",
|
|
fields: {
|
|
id: {
|
|
type: "string",
|
|
required: true,
|
|
description: "Unique component ID",
|
|
},
|
|
tagWhitelist: {
|
|
type: "array",
|
|
items: {
|
|
type: "reference",
|
|
collection: "tag",
|
|
},
|
|
description: "Optional: only search content with these tags",
|
|
},
|
|
textFragments: {
|
|
type: "array",
|
|
required: true,
|
|
items: {
|
|
type: "reference",
|
|
collection: "text_fragment",
|
|
},
|
|
description: "Searchable text fragments (references to text_fragment)",
|
|
},
|
|
title: {
|
|
type: "string",
|
|
description: "Search component title",
|
|
},
|
|
description: {
|
|
type: "string",
|
|
description: "Description",
|
|
},
|
|
layout: {
|
|
type: "object",
|
|
useFields: "component_layout",
|
|
description: "Column width (grid) like CF_ComponentLayout",
|
|
},
|
|
},
|
|
}
|