modification du blueprint year pour pouvoir séléctionner une page dans une autre année

This commit is contained in:
antonin gallon 2026-02-09 19:53:17 +01:00
parent 8f9e75126e
commit 344af4c0fe
3 changed files with 15 additions and 7 deletions

View file

@ -15,7 +15,7 @@ tabs:
type: pages type: pages
template: year template: year
sortBy: title desc sortBy: title desc
- width: 1/1 - width: 1/2
sections: sections:
allTextsSection: allTextsSection:
label: Tous les textes label: Tous les textes

View file

@ -24,6 +24,14 @@ tabs:
templates: templates:
- linear - linear
- grid - grid
linkedTextsSection:
type: fields
fields:
linkedTexts:
label: Textes liés
type: pages
query : site.find('textes').grandChildren
help: textes enregistrés à une autre année à inclure aussi dans celle-ci.
- width: 2/3 - width: 2/3
fields: fields:
edito: edito:

View file

@ -1,15 +1,15 @@
<?php <?php
Kirby::plugin('sylvainjule/code-editor', [ Kirby::plugin('sylvainjule/code-editor', [
'options' => [ 'options' => array(
'language' => 'css', 'language' => 'css',
'size' => 'small', 'size' => 'small',
'lineNumbers' => true, 'lineNumbers' => true,
'tabSize' => 4, 'tabSize' => 4,
'insertSpaces' => true, 'insertSpaces' => true,
'ignoreTabKey' => false, 'ignoreTabKey' => false,
], ),
'fields' => [ 'fields' => array(
'code-editor' => require_once __DIR__ . '/lib/fields/code-editor.php', 'code-editor' => require_once __DIR__ . '/lib/fields/code-editor.php',
], ),
]); ]);