This commit is contained in:
@@ -9,7 +9,6 @@ media_folder: "static/images/uploads" # Media files will be stored here
|
|||||||
public_folder: "/images/uploads" # The src attribute for uploaded media
|
public_folder: "/images/uploads" # The src attribute for uploaded media
|
||||||
display_url: https://benno-lorenz.com
|
display_url: https://benno-lorenz.com
|
||||||
|
|
||||||
|
|
||||||
collections:
|
collections:
|
||||||
- name: "blogposts" # Used in routes, e.g., /admin/collections/blog
|
- name: "blogposts" # Used in routes, e.g., /admin/collections/blog
|
||||||
label: "Blog Posts" # Used in the UI
|
label: "Blog Posts" # Used in the UI
|
||||||
@@ -20,24 +19,40 @@ collections:
|
|||||||
public_folder: ""
|
public_folder: ""
|
||||||
slug: "index" # Filename template
|
slug: "index" # Filename template
|
||||||
editor:
|
editor:
|
||||||
preview: false
|
preview: false
|
||||||
fields:
|
fields:
|
||||||
- { label: "Title", name: "title", widget: "string" }
|
- { label: "Title", name: "title", widget: "string" }
|
||||||
- { label: "Summary", name: "summary", widget: "string", required: false }
|
- { label: "Summary", name: "summary", widget: "string", required: false }
|
||||||
- { label: "Description", name: "description", widget: "string", required: false }
|
- {
|
||||||
|
label: "Description",
|
||||||
|
name: "description",
|
||||||
|
widget: "string",
|
||||||
|
required: false,
|
||||||
|
}
|
||||||
- { label: "Date", name: "date", widget: "datetime" }
|
- { label: "Date", name: "date", widget: "datetime" }
|
||||||
- { label: "Draft", name: "draft", widget: "boolean", default: true }
|
- { label: "Draft", name: "draft", widget: "boolean", default: true }
|
||||||
- { label: "Cover Style", name: "heroStyle", widget: "select", options: ["basic", "big", "background", "thumbAndBackground"], default: "default" }
|
- {
|
||||||
- { label: "Cover Image", name: "image", widget: "image", required : false }
|
label: "Cover Style",
|
||||||
- label: "images"
|
name: "heroStyle",
|
||||||
name: "images"
|
widget: "select",
|
||||||
widget: "image"
|
options: ["basic", "big", "background", "thumbAndBackground"],
|
||||||
required: false
|
default: "default",
|
||||||
media_folder: "img"
|
}
|
||||||
choose_url: false
|
- {
|
||||||
media_library:
|
label: "Cover Image",
|
||||||
config:
|
name: "image",
|
||||||
multiple: true
|
widget: "image",
|
||||||
|
required: false,
|
||||||
|
}
|
||||||
|
- label: "images"
|
||||||
|
name: "images"
|
||||||
|
widget: "image"
|
||||||
|
required: false
|
||||||
|
media_folder: "."
|
||||||
|
choose_url: false
|
||||||
|
media_library:
|
||||||
|
config:
|
||||||
|
multiple: true
|
||||||
- { label: "Body", name: "body", widget: "markdown" }
|
- { label: "Body", name: "body", widget: "markdown" }
|
||||||
########################
|
########################
|
||||||
# POSTS COLLECTION
|
# POSTS COLLECTION
|
||||||
|
|||||||
Reference in New Issue
Block a user