fin du tuto, les vrais galere commence

This commit is contained in:
antonin gallon 2025-11-28 14:40:57 +01:00
parent d365abfdb9
commit 7d3d20d006
5 changed files with 66 additions and 8 deletions

View file

@ -1,7 +1,20 @@
<?php
Kirby::plugin('getkirby/pluginkit', [
'sections' => [
'demo' => []
'fields' => [
'demo' => [
'props' => [
'value' => function ($value = null) {
$margins = Yaml::decode($value);
return [
'top' => 0,
'right' => 0,
'bottom' => 0,
'left' => 0,
...$margins
];
}
]
]
],
]);