Files
rustycms/types/post.json5

75 lines
1.5 KiB
Plaintext

{
// Equivalent to: CF_Post extends CF_Content, CF_SEO
name: "post",
description: "Blog post with layout, SEO and optional tags",
tags: ["content", "blog"],
category: "content",
extends: [
"content_layout",
"seo"
],
fields: {
slug: {
type: "string",
required: true,
unique: true
},
linkName: {
type: "string",
required: true
},
icon: {
type: "string"
},
headline: {
type: "string",
required: true
},
subheadline: {
type: "string"
},
excerpt: {
type: "string",
maxLength: 500,
description: "Short summary for previews"
},
created: {
type: "datetime",
auto: true,
readonly: true
},
postImage: {
type: "reference",
collection: "img",
description: "Featured image"
},
postTag: {
type: "array",
items: {
type: "reference",
collection: "tag"
},
description: "Associated tags"
},
important: {
type: "boolean",
required: true,
default: false,
description: "Mark post as important"
},
date: {
type: "datetime",
description: "Optional display date"
},
content: {
type: "markdown",
required: true,
description: "Post body (Markdown)"
},
showCommentSection: {
type: "boolean",
default: true,
description: "Show comment section (default: true)"
},
}
}