Structuring blueprints
With blueprints you can create highly customized layouts that display the perfect interface for any type of data.
Only fields
The most simple setup of a blueprint is a form with just a few fields. For this setup, you can add fields using the fields keyword, then add your fields underneath with proper indentation:
title: My blueprint
fields:
headline:
label: Headline
type: text
text:
label: Text
type: textarea
For more sophisticated setups, you can use columns and tabs to create nice layouts.
The fields keyword works on the top blueprint level like in the example above, and equally inside columns and tabs.
More than input fields
Not every field collects content. Some display what is already there, and they are written exactly like any other field:
Here are some examples:
In this example we use two pagelist fields to separate drafts from published pages:
title: My blueprint
fields:
drafts:
type: pagelist
label: Drafts
status: draft
published:
type: pagelist
label: Published pages
status: listed
In this example we have a pagelist and a filelist below each other:
title: My blueprint
fields:
pages:
type: pagelist
label: Pages
files:
type: filelist
label: Files
Lists and input fields live in the same fields list and can be ordered freely:
title: My blueprint
fields:
pages:
type: pagelist
label: Pages
text:
type: text
description:
type: text
Columns
A single stacked column like the above can sometimes be useful, in many cases you will, however, want to give more structure to your layout. That's where columns come into play.
A column holds fields of any type, in any order.
Defining columns
Column definitions start with the columns keyword, followed by the individual column definitions. Columns can be defined in two ways:
title: My blueprint
columns:
left:
width: 2/3
fields:
# fields in the left column
right:
width: 1/3
fields:
# fields in the right column
You have to use named columns if you want to extend columns.
title: My blueprint
columns:
- width: 2/3
fields:
# fields in the left column
- width: 1/3
fields:
# fields in the right column
The following widths are available when defining columns:
1/2, 1/3, 1/4, 2/3, 2/4, 3/4
Adding fields to columns
Just like a blueprint itself, a column contains fields:
title: My blueprint
columns:
- width: 2/3
fields:
subtitle:
type: text
blocks:
type: blocks
- width: 1/3
fields:
published:
type: date
author:
type: userpicker
max: 1
A column that displays existing content works the same way. Here the main column holds a form and the sidebar lists the page's subpages and files:
title: My blueprint
columns:
# main
main:
width: 2/3
fields:
headline:
label: Headline
type: text
text:
label: Text
type: textarea
# sidebar
sidebar:
width: 1/3
fields:
# a list of subpages
pages:
type: pagelist
label: Subpages
# a list of files
files:
type: filelist
label: Files

You can probably already see how flexible this is. By slightly changing the columns, we can change the interface drastically.
Sidebar on the left
title: My blueprint
columns:
# sidebar
sidebar:
width: 1/3
fields:
# a list of subpages
pages:
type: pagelist
label: Subpages
# a list of files
files:
type: filelist
label: Files
# main
main:
width: 2/3
fields:
headline:
label: Headline
type: text
text:
label: Text
type: textarea

Two Sidebars
title: My blueprint
columns:
# sidebar left
left:
width: 1/4
fields:
# a list of subpages
pages:
type: pagelist
label: Subpages
template: default
# main
main:
width: 1/2
fields:
# a simple form
headline:
label: Headline
type: text
text:
label: Text
type: textarea
# sidebar right
right:
width: 1/4
fields:
# a list of files
files:
type: filelist
label: Files

Sticky columns
You can make an entire column sticky. This can be handy for a setup with a smaller sidebar that should always be available, even when you scroll.
columns:
- width: 1/3
sticky: true
fields:
# fields in the sticky column
Adapt all to your needs
Kirby gives you the flexibility to set up the Panel so that it adapts to the needs of every single page/template. Use the layout possibilities to create the structure that works best for you:
title: My blueprint
columns:
gallery:
width: 1/1
fields:
gallery:
type: filelist
layout: card
...
review:
width: 1/2
fields:
drafts:
type: pagelist
status: draft
...
review:
type: pagelist
status: unlisted
...
published:
width: 1/2
fields:
published:
type: pagelist
status: listed
...
If this isn't yet enough ways and space for you to structure your fields, move on with…
Tabs
When your blueprints get more complex, splitting up your view into multiple tabs helps to keep them organized. Tabs are basically wrappers around regular blueprint layouts. Check out how to create layouts before you get started with tabs.
Like the blueprint itself, a tab can contain
- only fields
- one or more fields
- columns with fields
Defining tabs
A tab definition has three options:
- label
- columns
- icon
The icon is optional. Please check out the list of available icons. You can also use an emoji by pasting it directly into the blueprint.
title: My blueprint
tabs:
content:
label: Content
icon: text
columns:
# layout
seo:
label: SEO
icon: search
columns:
# layout

Full example
title: My blueprint
tabs:
# content tab
content:
label: Content
icon: text
columns:
# main
main:
width: 2/3
fields:
# a simple form
headline:
label: Headline
type: text
text:
label: Text
type: textarea
# sidebar
sidebar:
width: 1/3
fields:
# a list of subpages
pages:
type: pagelist
label: Subpages
# a list of files
files:
type: filelist
label: Files
# seo tab
seo:
label: SEO
icon: search
fields:
seoTitle:
label: SEO Title
type: text
seoDescription:
label: SEO Description
type: text
Define fields once, place them anywhere
In a blueprint with tabs or columns, you can define all fields at the root level and only list their names in the layout. Moving a field to another column or tab becomes a one-line change.
title: Blog
fields:
intro:
type: textarea
articles:
label: Articles
type: pagelist
blueprints: article
layout: table
cover:
type: filepicker
max: 1
gallery:
label: Gallery
type: filelist
layout: cards
seoTitle:
label: SEO title
type: text
seoDescription:
label: SEO description
type: textarea
tabs:
content:
label: Content
columns:
- width: 2/3
fields:
- intro
- articles
- width: 1/3
fields:
- cover
- gallery
seo:
label: SEO
fields:
- seoTitle
- seoDescription
Only the fields you list in the layout are shown. If a name doesn't match any field at the root level, the Panel shows an error in its place.