Files
rustycms/types/image.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

39 lines
929 B
Plaintext

{
name: "image",
description: "Image component with inline img (src + description) and layout",
tags: ["component", "media"],
category: "components",
fields: {
name: {
type: "string",
required: true,
description: "Internal component name",
},
img: {
type: "referenceOrInline",
collection: "img",
required: true,
description: "Image: Slug (Referenz) oder Inline-Objekt (gleiche Felder wie img)",
},
caption: {
type: "string",
description: "Image caption",
},
layout: {
type: "object",
useFields: "component_layout",
description: "Column width (grid)",
},
maxWidth: {
type: "integer",
description: "Max width in px",
},
aspectRatio: {
type: "string",
description: "Aspect ratio",
enum: ["1:1", "4:3", "3:2", "16:9", "21:9", "2:3", "3:4"],
default: "4:3",
},
},
}