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

63 lines
1.4 KiB
Plaintext

{
// Corresponds to CF_Post_Overview / Contentful_Post_Overview.ts (extends CF_Content, CF_SEO)
name: "post_overview",
description: "Post listing page with layout and SEO",
tags: ["content", "blog"],
category: "content",
extends: [
"content_layout",
"seo"
],
fields: {
id: {
type: "string",
required: true,
description: "Unique post overview ID",
},
headline: {
type: "string",
required: true,
description: "Headline",
},
text: {
type: "richtext",
description: "Intro text",
},
layout: {
type: "object",
useFields: "component_layout",
description: "Column width (grid)",
},
allPosts: {
type: "boolean",
default: false,
description: "Show all posts (otherwise filter)",
},
filterByTag: {
type: "array",
items: {
type: "reference",
collection: "tag",
},
description: "Only posts with these tags",
},
posts: {
type: "array",
items: {
type: "reference",
collection: "post",
},
description: "Fixed list of posts (when not allPosts)",
},
numberItems: {
type: "integer",
description: "Max. number of displayed entries",
},
design: {
type: "string",
enum: ["cards", "list"],
description: "Display as cards or list",
},
},
}