Files
rustycms/types/searchable_text.json5
Peter Meier 4de99db670
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
Track all types in git, sync to server on deploy
2026-03-15 14:38:37 +01:00

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",
},
},
}