mise en place du début du back
This commit is contained in:
parent
5210d78d7d
commit
c1c4fda329
22 changed files with 1595 additions and 4 deletions
103
site/blueprints/pages/article.yml
Normal file
103
site/blueprints/pages/article.yml
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
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
|
||||
|
||||
columns:
|
||||
# Colonne principale
|
||||
main:
|
||||
width: 2/3
|
||||
sections:
|
||||
# En-tête
|
||||
header:
|
||||
type: fields
|
||||
fields:
|
||||
title:
|
||||
label: Titre de l'article
|
||||
type: text
|
||||
required: true
|
||||
intro:
|
||||
label: Introduction / Chapeau
|
||||
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
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue