johan
December 1, 2019, 10:01am
1
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 not sure what I’m missing. Best case scenario, use the default template and hide the template dropdown all together.
bnomei
December 1, 2019, 10:54am
2
try templates: default
. the prop name is in plural even if you just provide one.
texnixe
December 1, 2019, 11:29am
3
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?
johan
December 1, 2019, 11:44am
4
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.
texnixe
December 1, 2019, 11:46am
5
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
johan
December 1, 2019, 11:55am
8
Awesome!! Thanks for the help!