From 4b8857cc9e8f02ef8cde8221322a1f3da4d60e57 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 21 Feb 2023 17:57:22 +0100 Subject: passage de formation en yml --- static/admin/config.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'static') 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' } } -- cgit v1.2.3