aboutsummaryrefslogblamecommitdiff
path: root/static/admin/config.yml
blob: aed2864abba36bf138219a8c15e6a7ff5029a9d5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

             



                                            



                                                       
            

            



















                                 


                                   


                    
           
                    

                      
                    

                      











                                                                    
                  
                    






                                



                                       









                        
                                                                            
backend:
  name: gitea
  repo: deuxfleurs/guide.deuxfleurs.fr
  base_url: https://teabag.deuxfleurs.fr
  api_root: https://git.deuxfleurs.fr/api/v1
  branch: cms

media_folder: 'static/img/'
site_url: http://guide.web.vimaire.machine.dufour.io
display_url: http://guide.web.vimaire.machine.dufour.io
locale: 'fr'

collections:
  - name: 'accueil'
    label: 'Accueil'
    editor:
      preview: false
    files:
      - name: accueil2
        label: Accueil2
        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


  - name: 'prise_en_main'
    label: 'Prise en main'
    folder: 'content/prise_en_main'
    editor:
      preview: false
    create: true
    fields:
      - label: Titre
        name: title
        widget: string
      - label: Poids
        name: weight
        widget: number
      - 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' ]
            display_fields: ['{{title}} ({{filename}})', 'filename']
      - label: Corps
        name: body
        widget: text

  - name: 'formations'
    label: 'Se former'
    folder: 'content/formations'
    editor:
      preview: false
    create: true
    #summary: '{{title}} ({{dirname}})'
    #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' } }