title: Article
icon: article

status:
  draft:
    label: Brouillon
    text: L'article n'est pas visible
  unlisted:
    label: Non listé
    text: L'article est accessible mais pas dans la liste
  listed:
    label: Publié
    text: L'article est visible publiquement
tabs:
  content:
    label: Contenu
    icon: text
    columns:
      # Colonne principale
      main:
        width: 2/3
        sections:
          # En-tête
          header:
            type: fields
            fields:
              intro:
                label: Introduction
                type: textarea
                size: small
                help: "Résumé ou accroche de l'article"

          # Contenu
          content:
            type: fields
            fields:
              article_content:
                label: Contenu de l'article
                type: blocks
                fieldsets:
                  heading:
                    label: Titre
                    type: heading
                  text:
                    label: Texte
                    type: text
                  quote:
                    label: Citation
                    type: quote
                  image:
                    label: Image
                    type: image
                  list:
                    label: Liste
                    type: list
                  video:
                    label: Vidéo
                    type: video

      # Sidebar
      sidebar:
        width: 1/3
        sections:
          # Métadonnées
          meta:
            type: fields
            fields:
              date:
                label: Date de publication
                type: date
                required: true
                default: today
              cover:
                label: Image de couverture
                type: files
                max: 1
                accept: image/*
                uploads:
                  template: image

          # Recommandations
          related:
            type: fields
            fields:
              related_articles:
                label: Articles recommandés
                type: pages
                query: site.find('blog').children.listed
                max: 3
                help: "Articles similaires à afficher en bas de page"

  # SEO
  seo:
    type: fields
    fields:
      meta_title:
        label: Meta Title
        type: text
      meta_description:
        label: Meta Description
        type: textarea
        size: small
        maxlength: 160
