Panel: Specify Specific Templates for Subpages

Is there a way to specify in a Blueprint that subpages of specific types should be created? This existed in Kirby 2, and seems to be inadequately addressed by the ability to specify which type of templates an existing subpage can be converted to.

To add subpages to a page, you have to use a pages section.

Within your pages section, you have several options:

  • templates option: limit the displayed pages to pages with this template; this also defines that subpages with these templates can be created
  • create option: if you want to further limit the templates to be used when a new page is added, you can use the create option.

Example: the site.yml from the Starterkit:

title: Site

  - width: 1/2
      albums: sections/albums
  - width: 1/2
      notes: sections/notes
        type: pages
        create: default # new pages can only be created with the default template
        template: # pages with theses templates are shown in the section
          - about
          - home
          - default

The section shows all pages that use either the about, the home, or the default template. It only allows new pages to be created with the default template. Without the create option set, you could create new pages with the three templates defined under the templatesoption.

1 Like