generated from inherentlee/11ty
define page schema and collection
This commit is contained in:
1 parent
edf063f636
commit
2c4b3f1922
3 files changed
+143
-1
No files matched your search
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"allowedTypes": [],
|
||||||
|
"defaultFilename": null,
|
||||||
|
"dir": "/src",
|
||||||
|
"disableComments": false,
|
||||||
|
"disablePreview": false,
|
||||||
|
"draftByDefault": false,
|
||||||
|
"linkable": true,
|
||||||
|
"maxSize": null,
|
||||||
|
"permissions": {
|
||||||
|
"everybody": [
|
||||||
|
"everything"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"rawEntityNames": false,
|
||||||
|
"schemas": [
|
||||||
|
"/.mattrbld/schemas/page.json"
|
||||||
|
],
|
||||||
|
"type": "md",
|
||||||
|
"urlTemplate": "/:title/"
|
||||||
|
}
|
||||||
+11
-1
@@ -22,7 +22,17 @@
|
|||||||
},
|
},
|
||||||
"icon": "error",
|
"icon": "error",
|
||||||
"showInDashboard": true,
|
"showInDashboard": true,
|
||||||
"label": "Intro and help"
|
"label": "Help"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon": null,
|
||||||
|
"label": "Pages",
|
||||||
|
"target": {
|
||||||
|
"name": "Project.Collection",
|
||||||
|
"params": {
|
||||||
|
"path": "/.mattrbld/collections/pages.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Media library",
|
"label": "Media library",
|
||||||
|
|||||||
@@ -0,0 +1,111 @@
|
|||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"default": null,
|
||||||
|
"icon": "text-input",
|
||||||
|
"key": "title",
|
||||||
|
"label": "Title",
|
||||||
|
"localised": false,
|
||||||
|
"options": {
|
||||||
|
"wrapping": true,
|
||||||
|
"multiline": false
|
||||||
|
},
|
||||||
|
"tab": "Content",
|
||||||
|
"validation": {
|
||||||
|
"enforceMinMax": true,
|
||||||
|
"max": null,
|
||||||
|
"min": null,
|
||||||
|
"regex": null,
|
||||||
|
"regexError": null,
|
||||||
|
"required": true,
|
||||||
|
"unit": "length"
|
||||||
|
},
|
||||||
|
"value": null,
|
||||||
|
"version": 1,
|
||||||
|
"visibility": {
|
||||||
|
"hidden": false,
|
||||||
|
"showByValue": {
|
||||||
|
"field": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "rich text",
|
||||||
|
"default": null,
|
||||||
|
"icon": "text",
|
||||||
|
"key": "content",
|
||||||
|
"label": "Body",
|
||||||
|
"localised": false,
|
||||||
|
"options": {
|
||||||
|
"outputFormat": "markdown",
|
||||||
|
"blockFormats": [
|
||||||
|
"blockquote",
|
||||||
|
"heading",
|
||||||
|
"hr",
|
||||||
|
"orderedList",
|
||||||
|
"unorderedList",
|
||||||
|
"image",
|
||||||
|
"codeBlock"
|
||||||
|
],
|
||||||
|
"inlineFormats": [
|
||||||
|
"em",
|
||||||
|
"strong",
|
||||||
|
"link",
|
||||||
|
"code"
|
||||||
|
],
|
||||||
|
"formatOptions": [
|
||||||
|
"allowQuoteFooters",
|
||||||
|
"allowNestedLists",
|
||||||
|
"allowImageCaptions"
|
||||||
|
],
|
||||||
|
"inputRuleOptions": [
|
||||||
|
"autoquotes",
|
||||||
|
"dashes",
|
||||||
|
"ellipsis",
|
||||||
|
"noDoubleCaps",
|
||||||
|
"noDoubleSpace"
|
||||||
|
],
|
||||||
|
"minHeading": 2,
|
||||||
|
"maxHeading": 4,
|
||||||
|
"codeLangs": [
|
||||||
|
"html",
|
||||||
|
"css",
|
||||||
|
"javascript",
|
||||||
|
"markdown"
|
||||||
|
],
|
||||||
|
"allowRaw": false,
|
||||||
|
"urlTemplate": "",
|
||||||
|
"urlSuffix": "",
|
||||||
|
"linkOptions": [
|
||||||
|
"allowExternal",
|
||||||
|
"allowInternal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tab": "Content",
|
||||||
|
"validation": {
|
||||||
|
"enforceMinMax": true,
|
||||||
|
"max": null,
|
||||||
|
"min": null,
|
||||||
|
"regex": null,
|
||||||
|
"regexError": null,
|
||||||
|
"required": true,
|
||||||
|
"unit": "length"
|
||||||
|
},
|
||||||
|
"value": null,
|
||||||
|
"version": 1,
|
||||||
|
"visibility": {
|
||||||
|
"hidden": false,
|
||||||
|
"showByValue": {
|
||||||
|
"field": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tabs": [
|
||||||
|
{
|
||||||
|
"label": "Content",
|
||||||
|
"groupAs": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in new issue
Block a user