finish author system

This commit is contained in:
isUnknown 2024-10-16 08:53:53 +02:00
parent db8669d30d
commit fe6e01acdf
38 changed files with 614 additions and 73 deletions

View file

@ -0,0 +1,19 @@
title: Auteur
image: false
tabs:
contentTab:
label: Contenu
sections:
presentationSection:
type: fields
fields:
presentation:
label: Présentation
type: writer
help: Optionnelle
texts:
label: Textes
type: pages
create: false
query: page.getTexts()

View file

@ -0,0 +1,9 @@
title: Auteurs
tabs:
contentTab:
sections:
authorsSection:
label: Liste
type: pages
template: author

View file

@ -0,0 +1,26 @@
title: Email
status:
draft: Brouillon
listed: Envoyé
image:
back: black
color: white
icon: email
options:
changeStatus: false
tabs:
contentTab:
fields:
month:
label: Mois
type: date
display: "mmmm YYYY"
default: today
width: 1/4
sendBtn:
type: send-button
width: 1/4
content:
label: Contenu
type: writer

View file

@ -0,0 +1,21 @@
title: Liste de diffusion
tabs:
content:
columns:
- width: 1/2
fields:
subscribers:
label: Abonnés
type: structure
fields:
email:
type: email
- width: 1/2
sections:
newsletters:
label: Emails
type: pages
template: email
info: "{{ page.month.toDate('M Y') }}"
sortBy: month desc

View file

@ -12,12 +12,13 @@ sections:
label: Catégorie
type: select
options: query
query: site.find('texts').categories.split
query: site.find('textes').categories.split
required: true
width: 1/3
author:
label: Auteur
type: users
max: 1
type: pages
query: page('auteurs').children
multiple: false
required: true
width: 1/3