Panel setup for year ranges

For now, I’ve settled with a multiselect field that’s fetching years from a custom route in the config:

    'routes' => [
        [
            'pattern' => 'hananils/years',
            'method' => 'GET',
            'action' => function () {
                $years = [];
                $year = date('Y');
                $start = 2009;

                while ($year >= $start) {
                    $years[$year] = (string) $year;
                    $year--;
                };

                return \Kirby\Http\Response::json(['years' => $years]);
            }
        ]
    ]

Thanks again for your input, @texnixe :slight_smile: