template + blueprint news
All checks were successful
Deploy / Deploy to Production (push) Successful in 5m16s

This commit is contained in:
Julie Blanc 2026-02-25 15:22:34 +01:00
parent 224ddedc93
commit ea35cc1e22
11 changed files with 286 additions and 8 deletions

View file

@ -27,6 +27,9 @@ columns:
impactCategories:
label: Catégories des impacts
type: tags
newsCategories:
label: Catégories des brèves
type: tags
robots:
type: hidden
default: noindex, nofollow

View file

@ -0,0 +1,64 @@
title: Brève
tabs:
contentTab:
label: Contenu
icon: page
columns:
- width: 2/6
sections:
createdSection:
type: fields
fields:
created:
label: Date de publication
type: date
display: DD / MM / YYYY
default: today
width: 1/2
category:
label: Catégorie
type: tags
max: 1
options: query
query: page('database').newsCategories.split
cover:
label: Image de couverture
type: files
multiple: false
layout: cards
image:
ratio: 12/7
cover: true
help: Optionnelle — utilisée dans la liste des brèves
- width: 4/6
fields:
chapo:
label: Chapeau
type: writer
nodes: false
marks:
- bold
- italic
linkedInvestigations:
label: Enquêtes liées
type: pages
query: page('enquetes').children.listed
multiple: true
layout: list
text: "{{ page.title }}"
info: "{{ page.created }}"
body:
label: Corps
type: blocks
fieldsets:
- heading
- text
- image
- beforeafter
- video
- gallery
- insert
seo: seo/page

View file

@ -0,0 +1,27 @@
title: Brèves
tabs:
contentTab:
label: Contenu
icon: page
columns:
- width: 1/3
fields:
chapo:
label: Introduction
type: writer
nodes: false
buttons: false
- width: 2/3
sections:
newsSection:
type: pages
label: Liste des brèves
template: news-item
create: news-item
layout: list
text: "{{ page.title }}"
info: "{{ page.category }} — {{ page.created.toDate('d/m/Y') }}"
sortBy: created desc
seo: seo/page