Skip to content

Kirby 4.5.0

Pages

The Pages preset is intended for container pages like a blog with subpages in different states of their publishing cycle

Do not use presets for new projects. Presets will be deprecated in future versions of Kirby.

A basic blueprint using a pages preset looks like this:

Title: Pages preset example
preset: pages

By default, this adds two sections of type pages to your form: A drafts section (default label "Drafts") and a section of listed pages (default label "Published").

This preset is again extendable. For example, if you want to add a section for pages in review while at the same time using predefined sections with additional options, you can do it like this using the keywords drafts, unlisted, and listed:

title: Blog
preset: pages
icon: 📜
options:
  url: false
  status: false
  delete: false
drafts:
  extends: sections/articles
  label: Unpublished articles
unlisted:
  extends: sections/articles
  label: Articles in review
listed:
  extends: sections/articles
  label: Published articles