Stop page template being used again?

I’m struggling to find an answer to this one.

When creating a new page in Kirby, I want them to be able to select the Template page only and not the home page, error page etc.

At the top of the Home Page yml file I have:

title: Home Page
options:
    duplicate: false
    delete: false

But this doesn’t seem to stop the home page being duplicated when creating a new page?

Has something maybe to go in the site.yml file instead?

1 Like

Found it for reference for anyone looking in the future.

In the site.yml file where you create the new page under drafts, you can add the templates there.

drafts:
    type: pages
    label: Draft Pages
    status: draft
    templates:
      - template

This only allows them to create as template with the ‘Template’ page I have created.

1 Like