Page template is listed in the Page Creation dialog even if it is set to "create: false"

I have some page blueprints that define pages that should exist only once. For example the pages/search.yml.

Because there should always be only one search page, I have set some options:

extends: pages/default
title: Search
icon: search

options:
  delete: false
  changeStatus: false
  changeSlug: false
  changeTemplate: false
  move: false
  create: false
  duplicate: false
  preview: false

...

These options ensure that the existing search page cannot be deleted and that a new one cannot be created.

In my site.yml I have a pages field that lists all existing pages:

          pages:
            label:
              en: Pages
              de: Seiten
            type: pages

This list also includes the pages that are allowed to exist exactly once (like the search page) and that is exactly what is intended.

The problem now is that the search template is also in the selection field in the corresponding page creation dialog, but such a page cannot be created. So it doesn’t make sense for it to be selectable at all.

How can I prevent such page templates from being displayed in the select box? Is there any solution for this?

It’s not just about the search page but also about actual specific content pages. So splitting the list is not an option for me.

You need to set the allowed templates in the pages sections via the create option, see Pages section | Kirby CMS

Thanks for the answer. Unfortunately, the parameter templates also affects which pages are displayed in the page list, not only wich templates are in the select field of the page creation dialog. So if I write the following, the existing search page will no longer be listed in the page list.


          pages:
            label:
              en: Pages
              de: Seiten
            type: pages
            templates:
              - default

Actually, I just want it to disappear from the page creation dialog. I want it to continue to be listed in the list of existing pages. Is that not possible?

Not the templates option, createoption!

Oh, sorry, I obviously can’t read. Thanks a lot, that works :folded_hands:
Now I’m surprised that I missed this in the documentation :see_no_evil_monkey::smiling_face: