How to limit/sort available template options for child pages

I’d like to limit which templates are available when creating new pages here:

//site/blueprints/site.yml

title: Site
unlisted: true
pages:
  type: pages
  templates:
    - default
    - two-column
    - three-column
  create:
    - default
    - two-column
    - three-column

I’ve tried this but all of my templates are still available.
image

What is the difference between templates: and create: ?

Neither seem to affect which options are displayed in Kirby 3.5.3.1

Is there a way to filter and sort which template are available?
I would like the templates options in the dropdown to read:

One Column
Two Column
Three Column

I’m also curious if it’s possible to specify in the yml file for a template that it should not be accessible as an option. For example, don’t ever show the error template or home template as an option when creating new pages via the panel.

Your setup is not quite correct:

title: Site
sections:
  pages:
    type: pages
    templates:
      - default
      - two-column
      - three-column
    create:
      - default
      - two-column
      - three-column

templates defines which templates will show up in the section and also which templates can be used when creating new pages in this section when no create option is set. With create you can limit which templates can be used to create new pages (so you only need the create option if it is different from templates.

Regarding your second question: No, there is currently no way to exclude rather then include templates. So if you want to exclude templates, you have to spell out all allowed templates.

1 Like