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
template: year
sortBy: title desc
- width: 1/1
- width: 1/2
sections:
allTextsSection:
label: Tous les textes

View file

@ -24,6 +24,14 @@ tabs:
templates:
- linear
- 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
fields:
edito:

View file

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