aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
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' } }