guide.deuxfleurs.fr/static/admin/config.yml

281 lines
7.4 KiB
YAML
Raw Permalink Normal View History

2023-02-21 15:21:51 +00:00
backend:
name: gitea
2023-03-02 09:03:46 +00:00
repo: deuxfleurs/guide.deuxfleurs.fr
base_url: https://teabag.deuxfleurs.fr
api_root: https://git.deuxfleurs.fr/api/v1
branch: cms
2023-02-21 15:21:51 +00:00
media_folder: 'static/img/'
2023-03-02 10:36:53 +00:00
site_url: https://guide.deuxfleurs.fr
display_url: guide.deuxfleurs.fr
2023-03-02 09:03:46 +00:00
locale: 'fr'
2023-02-21 15:21:51 +00:00
collections:
2023-03-02 10:36:53 +00:00
- name: 'special'
2023-02-21 17:41:52 +00:00
label: 'Accueil'
editor:
preview: false
files:
2023-03-02 10:36:53 +00:00
- name: accueil
label: Accueil
2023-02-21 17:41:52 +00:00
file: 'content/_index.md'
fields:
- label: Title
name: title
widget: string
- label: Sort by
name: sort_by
widget: string
- label: Body
name: body
widget: markdown
2023-02-21 16:20:17 +00:00
- name: 'prise_en_main'
label: 'Prise en main'
2023-03-02 10:36:53 +00:00
description: "Les tutoriels pour se lancer"
2023-02-21 16:20:17 +00:00
folder: 'content/prise_en_main'
2023-02-21 15:21:51 +00:00
editor:
preview: false
create: true
2023-03-02 10:36:53 +00:00
view_filters:
- label: 'Brouillons'
field: draft
pattern: true
view_groups:
- label: 'Section'
field: 'extra.parent'
pattern: '.*'
2023-02-21 15:21:51 +00:00
fields:
2023-03-02 10:36:53 +00:00
- label: Titre menu
2023-02-21 15:21:51 +00:00
name: title
widget: string
2023-03-02 10:36:53 +00:00
- label: Titre page (description)
name: description
widget: string
2023-03-02 09:03:46 +00:00
- label: Poids
2023-02-21 15:21:51 +00:00
name: weight
2023-03-02 10:36:53 +00:00
default: 50
2023-02-21 15:21:51 +00:00
widget: number
2023-03-02 10:36:53 +00:00
- label: Brouillon (ne pas publier encore)
name: draft
widget: boolean
default: false
- label: Date
name: date
widget: datetime
date_format: 'dd/MM/yyyy' # e.g. 24/12/2022
time_format: false
format: 'yyyy-MM-dd' # e.g. 2022-12-24
2023-03-02 09:03:46 +00:00
- label: Extra
name: extra
widget: object
fields:
- name: parent
label: Parent
widget: relation
collection: 'prise_en_main'
value_field: 'prise_en_main/{{filename}}.{{extension}}'
search_fields: [ 'title', 'filename', 'slug' ]
2023-03-02 10:36:53 +00:00
default: 'prise_en_main/_index.md'
2023-03-02 09:03:46 +00:00
display_fields: ['{{title}} ({{filename}})', 'filename']
- label: Corps
2023-02-21 15:21:51 +00:00
name: body
2023-03-02 10:36:53 +00:00
widget: markdown
2023-02-21 16:57:22 +00:00
- name: 'formations'
label: 'Se former'
2023-03-02 10:36:53 +00:00
description: 'Des ressources pour apprendre en profondeur'
2023-02-21 16:57:22 +00:00
folder: 'content/formations'
editor:
preview: false
create: true
2023-03-02 10:36:53 +00:00
view_filters:
- label: 'Brouillons'
field: draft
pattern: true
view_groups:
- label: 'Section'
field: 'extra.parent'
pattern: '.*'
2023-02-21 16:57:22 +00:00
fields:
2023-03-02 10:36:53 +00:00
- label: Titre
2023-02-21 16:57:22 +00:00
name: title
widget: string
2023-03-02 10:36:53 +00:00
- label: Poids
default: 50
2023-02-21 16:57:22 +00:00
name: weight
widget: number
2023-03-02 10:36:53 +00:00
- label: Brouillon (ne pas publier encore)
name: draft
widget: boolean
default: false
- label: Date
name: date
widget: datetime
date_format: 'dd/MM/yyyy' # e.g. 24/12/2022
time_format: false
format: 'yyyy-MM-dd' # e.g. 2022-12-24
- label: Extra
name: extra
widget: object
fields:
- name: parent
label: Parent
widget: relation
collection: 'formations'
value_field: 'formations/{{filename}}.{{extension}}'
search_fields: [ 'title', 'filename', 'slug' ]
default: 'formations/_index.md'
display_fields: ['{{title}} ({{filename}})', 'filename']
- label: Corps
name: body
widget: markdown
- name: 'vie_associative'
label: 'Vie associative'
description: "Tout ce qui a rapport à l'organisation et l'administration de l'asso"
folder: 'content/vie_associative'
editor:
preview: false
create: true
view_filters:
- label: 'Brouillons'
field: draft
pattern: true
view_groups:
- label: 'Section'
field: 'extra.parent'
pattern: '.*'
fields:
- label: Titre
name: title
widget: string
- label: Poids
default: 50
name: weight
widget: number
- label: Brouillon (ne pas publier encore)
name: draft
widget: boolean
default: false
- label: Date
name: date
widget: datetime
date_format: 'dd/MM/yyyy' # e.g. 24/12/2022
time_format: false
format: 'yyyy-MM-dd' # e.g. 2022-12-24
- label: Extra
name: extra
widget: object
fields:
- name: parent
label: Parent
widget: relation
collection: 'vie_associative'
value_field: 'vie_associative/{{filename}}.{{extension}}'
search_fields: [ 'title', 'filename', 'slug' ]
default: 'vie_associative/_index.md'
display_fields: ['{{title}} ({{filename}})', 'filename']
- label: Corps
name: body
widget: markdown
- name: 'infrastructures'
label: 'Infrastructures'
description: "Des informations d'intéret générale sur la technique"
folder: 'content/infrastructures'
editor:
preview: false
create: true
view_filters:
- label: 'Brouillons'
field: draft
pattern: true
view_groups:
- label: 'Section'
field: 'extra.parent'
pattern: '.*'
fields:
- label: Titre
name: title
widget: string
- label: Poids
default: 50
name: weight
widget: number
- label: Brouillon (ne pas publier encore)
name: draft
widget: boolean
default: false
- label: Date
name: date
widget: datetime
date_format: 'dd/MM/yyyy' # e.g. 24/12/2022
time_format: false
format: 'yyyy-MM-dd' # e.g. 2022-12-24
- label: Extra
name: extra
widget: object
fields:
- name: parent
label: Parent
widget: relation
collection: 'infrastructures'
value_field: 'infrastructures/{{filename}}.{{extension}}'
search_fields: [ 'title', 'filename', 'slug' ]
default: 'infrastructures/_index.md'
display_fields: ['{{title}} ({{filename}})', 'filename']
- label: Corps
2023-02-21 16:57:22 +00:00
name: body
widget: markdown
2023-03-02 10:39:37 +00:00
- name: 'operations'
label: 'Opérations'
description: "Base de connaissance technique à destination des operateur-ices"
folder: 'content/operations'
editor:
preview: false
create: true
view_filters:
- label: 'Brouillons'
field: draft
pattern: true
view_groups:
- label: 'Section'
field: 'extra.parent'
pattern: '.*'
fields:
- label: Titre
name: title
widget: string
- label: Poids
default: 50
name: weight
widget: number
- label: Brouillon (ne pas publier encore)
name: draft
widget: boolean
default: false
- label: Date
name: date
widget: datetime
date_format: 'dd/MM/yyyy' # e.g. 24/12/2022
time_format: false
format: 'yyyy-MM-dd' # e.g. 2022-12-24
- label: Extra
name: extra
widget: object
fields:
- name: parent
label: Parent
widget: relation
collection: 'operations'
value_field: 'operations/{{filename}}.{{extension}}'
search_fields: [ 'title', 'filename', 'slug' ]
default: 'operations/_index.md'
display_fields: ['{{title}} ({{filename}})', 'filename']
- label: Corps
name: body
widget: markdown