world-game/site/blueprints/pages/white-papers.yml
isUnknown effe6ec547
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 21s
feat: add CSV export button in panel for contact database
- Plugin csv-export: authenticated route /wg-export/contacts generates
  CSV with UTF-8 BOM, semicolon separator, white-paper titles resolved
- Panel section with k-button wired to the route, index.css for spacing
- white-papers.yml dataTab converted to sections to host the custom section
- Filename format: YYMMDD-contacts.csv

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 14:00:23 +02:00

115 lines
2.7 KiB
YAML

title: Livres blancs
icon: book
image:
back: rgba(0,0,0, 0)
color: var(--color-green)
query: false
options:
delete: false
duplicate: false
move: false
changeTemplate: false
changeSlug: false
tabs:
content:
label: Contenu
icon: text
sections:
content:
type: fields
fields:
intro:
type: writer
marks:
- bold
- italic
- green
- pixel
- underline
- strike
- clear
- link
nodes:
- heading
headings:
- 1
help: Section de texte centrée (optionnelle).
items:
label: Livres blancs
type: pages
translate: false
layout: cards
sortBy: published desc
template: white-paper
image:
ratio: 3/4
cover: true
info: "{{ page.published.toDate('d/m/Y') }}"
dataTab:
label: Contacts
icon: chart
sections:
export:
type: csv-export
contacts:
type: fields
fields:
contactDatabase:
label: Ont téléchargé un livre blanc
type: structure
translate: false
columns:
firstName:
label: Prénom
width: 1/5
lastName:
label: Nom
width: 1/5
email:
label: Email
width: 1/5
company:
label: Entreprise
width: 1/5
role:
label: Fonction
width: 1/5
whitePaper:
label: Livres blancs
downloadedAt:
label: Date
fields:
firstName:
label: Prénom
type: text
translate: false
required: true
lastName:
label: Nom
type: text
translate: false
required: true
company:
label: Société
type: text
translate: false
role:
label: Fonction
type: text
translate: false
email:
type: email
translate: false
required: true
whitePaper:
label: Livres blancs
type: pages
translate: false
query: site.find('livres-blancs').children
downloadedAt:
type: text
translate: false
label: Date
files: tabs/files
seo: seo/page