Default template not working when adding new page

Hi,

In my site.yml:

pages:
  label: Pages
  preset: pages
  template: default
  unlisted: true

When adding a new page from the homepage I can still pick any template from the “template” dropdown :confused: not sure what I’m missing. Best case scenario, use the default template and hide the template dropdown all together.

try templates: default. the prop name is in plural even if you just provide one.

For a single template, the template option works as well. On a side note, there is no option called preset for sections.

But I just tested this and I only get the default template when creating a new language in that section. Could you please post the complete blueprint?

site.yml:

title: Site

tabs:

  pages:
    label: Pages
    preset: pages
    unlisted: true

There are more tabs but they’re not relevant here.

If I could set the default template to be “page” when adding a new page, that would be nice! If I add templates: default then no pages are listed.

Oh, alright, so pages is a tab, not a section.

tabs:

  pages:
    label: Pages
    preset: pages
    unlisted: true
    drafts:
      template: default

This will allow you to create only drafts with the default template while showing any published pages.

2 Likes

Awesome!! Thanks for the help!