Page create dialog: title and slug must not be false

I don’t know when this stopped working, but before I was able to do this:

create:
  redirect: false
  slug: false
  status: unlisted

And the url appendix field was hidden, like intended.

Suddenly it stopped working and I get this, when trying to add a page with those settings:

image

Your post is unfortunately lacking quite a bit of information:

  1. What is your current Kirby version?
  2. “Suddenly it stopped working”: What does that mean, without you changing anything on the site? Or did you update your site recently? Setting false for the slug is not possible in Kirby 4.2 (currently latest version)
  3. Are you using any plugins?
1 Like

I traced it back to an update of kirby.

create:
  redirect: false
  slug: false
  status: unlisted

Worked in 4.0.3

the slug: false did not hide the slug field though, so the setting silently failed.

With 4.1.2 (perhaps even earlier) the setting fails “loudly”

4.1 added that you can set slug to a string template which will be used to create the slug. If that is set, the field is hidden as it’s not needed then.

With that addition, the exception was also added to make clearer when using a wrong value here.

1 Like