RustyCMS: File-based headless CMS with REST API, admin UI, multilingual support
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
45
types/page.json5
Normal file
45
types/page.json5
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
// Equivalent to: CF_Page extends CF_Content, CF_SEO
|
||||
name: "page",
|
||||
description: "Page with layout, SEO and content rows",
|
||||
tags: ["content", "page"],
|
||||
category: "content",
|
||||
extends: [
|
||||
"content_layout",
|
||||
"seo"
|
||||
],
|
||||
fields: {
|
||||
slug: {
|
||||
type: "string",
|
||||
required: true,
|
||||
unique: true,
|
||||
description: "URL slug"
|
||||
},
|
||||
name: {
|
||||
type: "string",
|
||||
required: true,
|
||||
description: "Internal page name"
|
||||
},
|
||||
linkName: {
|
||||
type: "string",
|
||||
required: true,
|
||||
description: "Display name in navigation"
|
||||
},
|
||||
icon: {
|
||||
type: "string",
|
||||
description: "Icon identifier (optional)"
|
||||
},
|
||||
headline: {
|
||||
type: "string",
|
||||
required: true
|
||||
},
|
||||
subheadline: {
|
||||
type: "string"
|
||||
},
|
||||
topFullwidthBanner: {
|
||||
type: "reference",
|
||||
collection: "fullwidth_banner",
|
||||
description: "Hero banner at the top"
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user