Commit 1a51e4ae authored by 吕祺's avatar 吕祺 ⛹🏽

fix

parent 2882aab5
backend: backend:
#name: test-repo name: test-repo
name: gitlab #name: gitlab
branch: master branch: master
repo: lq/cmscenter repo: lq/cmscenter
auth_type: implicit auth_type: implicit
...@@ -25,3 +25,19 @@ collections: ...@@ -25,3 +25,19 @@ collections:
- { label: "Abstract", name: "abstract", widget: "text" } - { label: "Abstract", name: "abstract", widget: "text" }
- { label: "content", name: "content", widget: "markdown"} - { label: "content", name: "content", widget: "markdown"}
- { label: "coverpic", name: "coverpic", widget: "image" } - { label: "coverpic", name: "coverpic", widget: "image" }
- name: "Frontpage"
label: "frontpage"
sortable_fields: ['type', 'title','createDate', 'highLight','source']
create: true
identifier_field: name
folder: "content/news"
summary: "{{title}} {{createDate}}"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "type", name: "type", widget: "string", required: false}
- { label: "createDate", name: "createDate", widget: "datetime" }
- { label: "Abstract", name: "abstract", widget: "text" }
- { label: "content", name: "content", widget: "markdown"}
- { label: "coverpic", name: "coverpic", widget: "image" }
- { label: "articleurl", name: "articleurl", widget: "relation", collection: "News", value_field: "title", search_fields: ["title"], multiple: true }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment