aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-02-21 17:57:22 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-02-21 17:57:22 +0100
commit4b8857cc9e8f02ef8cde8221322a1f3da4d60e57 (patch)
tree7f4e0af40a52c5081eb84c17063e1146d6c27b3a /static
parent88638b4b0780b89459ed5a215124f18b82c6c316 (diff)
downloadguide.deuxfleurs.fr-4b8857cc9e8f02ef8cde8221322a1f3da4d60e57.tar.gz
guide.deuxfleurs.fr-4b8857cc9e8f02ef8cde8221322a1f3da4d60e57.zip
passage de formation en yml
Diffstat (limited to 'static')
-rw-r--r--static/admin/config.yml24
1 files changed, 22 insertions, 2 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml
index 77d46e6..46607e4 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -30,5 +30,25 @@ collections:
- label: Body
name: body
widget: markdown
- modes: [ 'raw', 'rich_text' ]
- meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
+ meta: { path: { widget: string, label: 'Path', index_file: '_index.md' } }
+
+ - name: 'formations'
+ label: 'Se former'
+ folder: 'content/formations'
+ editor:
+ preview: false
+ create: true
+ nested:
+ depth: 3
+ summary: '{{title}}'
+ fields:
+ - label: Title
+ name: title
+ widget: string
+ - label: Weight
+ name: weight
+ widget: number
+ - label: Body
+ name: body
+ widget: markdown
+ meta: { path: { widget: string, label: 'Path', index_file: '_index.md' } }