Right approach for multiple layouts for a type of page

Hi,

I’m trying to figure out the right way to use templates, or find out if templates are the right way to do what I’m trying to do… It seems like templates should be a option for each page since there is a top level dropdown – though for me it is greyed out in all cases.

What I’m trying to do:

  • I’m using the starter kit
  • I have a bunch of blog posts
  • I would like to create 3x different templates for a blog post to choose from for each (e.g. say they have different treatment of images or something)

I’m not sure how I can best have a panel option to pick which way the blog post should be displayed.

Any suggestions would be greatly appreciated.

I’m fairly new to Kirby but am thoroughly impressed by it’s capabilities and approach to content and design.

When you create a pages section, you have a templates option where you set what templates can be used when a new page is created.
https://getkirby.com/docs/reference/panel/sections/pages#filtering-pages

For example, this is the site/blueprints/section/notes.yml pages section:

type: pages
headline: Notes
parent: site.find("notes")
info: "{{ page.date.toDate('d.m.Y') }}"
template: note
empty: No notes yet
sortBy: date desc

As you can see, the template option is set to note only. You can change this and add multiple possible templates:

type: pages
headline: Notes
parent: site.find("notes")
info: "{{ page.date.toDate('d.m.Y') }}"
templates: 
  - note
  - article
  - test
empty: No notes yet
sortBy: date desc

Thank you! That is precisely what I was thinking might be the case and just couldn’t find it in the docs.