RustyCMS: File-based headless CMS with REST API, admin UI, multilingual support
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
34
types/iframe.json5
Normal file
34
types/iframe.json5
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
// Corresponds to CF_ComponentIframe / Contentful_Iframe.ts
|
||||
name: "iframe",
|
||||
description: "Embedded iframe with URL and optional title",
|
||||
tags: ["media", "component"],
|
||||
category: "components",
|
||||
fields: {
|
||||
name: {
|
||||
type: "string",
|
||||
required: true,
|
||||
description: "Internal component name",
|
||||
},
|
||||
content: {
|
||||
type: "string",
|
||||
required: true,
|
||||
description: "Description/content for iframe",
|
||||
},
|
||||
iframe: {
|
||||
type: "string",
|
||||
required: true,
|
||||
description: "Iframe URL or embed code",
|
||||
},
|
||||
overlayImage: {
|
||||
type: "reference",
|
||||
collection: "img",
|
||||
description: "Optional overlay image (reference to img)",
|
||||
},
|
||||
layout: {
|
||||
type: "object",
|
||||
useFields: "component_layout",
|
||||
description: "Column width (grid) like CF_ComponentLayout",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user