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
|
||||
display_url: https://benno-lorenz.com
|
||||
|
||||
|
||||
collections:
|
||||
- name: "blogposts" # Used in routes, e.g., /admin/collections/blog
|
||||
label: "Blog Posts" # Used in the UI
|
||||
@@ -24,16 +23,32 @@ collections:
|
||||
fields:
|
||||
- { label: "Title", name: "title", widget: "string" }
|
||||
- { 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: "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",
|
||||
name: "heroStyle",
|
||||
widget: "select",
|
||||
options: ["basic", "big", "background", "thumbAndBackground"],
|
||||
default: "default",
|
||||
}
|
||||
- {
|
||||
label: "Cover Image",
|
||||
name: "image",
|
||||
widget: "image",
|
||||
required: false,
|
||||
}
|
||||
- label: "images"
|
||||
name: "images"
|
||||
widget: "image"
|
||||
required: false
|
||||
media_folder: "img"
|
||||
media_folder: "."
|
||||
choose_url: false
|
||||
media_library:
|
||||
config:
|
||||
|
||||
Reference in New Issue
Block a user