Hullo,
I have a page blueprint post.yml
that includes a date
field. In that blueprint I have the num
parameter set up to sort the pages chronologically.
This has always worked fine, but I’ve just tried adding a new post and I get this error when changing the status to Public:
Kirby\Cms\App::extendRoutes(): Argument #1 ($routes) must be of type Closure|array, bool given, called in /REDACTED/kirby/src/Cms/AppPlugins.php on line 106
My post.yml blueprint:
title: Post Page
num: '{{ page.date.toDate("Ymd") }}'
fields:
date:
label: Post Date
type: date
default: now
required: true
time:
notation: 12
Based on the example here: Page blueprint | Kirby CMS
As mentioned, this setup has always worked fine for me and matches the docs linked above. I have updated Kirby (currently on 4.2.0) since the last time I added a post. I can save the post as Unlisted without error. Commenting out the num:
line allows me to save the post as Public.
Appreciate the help!