Adding fields to site blueprint

Is there a way to add Fields to the site blueprint like in Kirby2?

When adding for example:

fields:
  text:
    label: Text
    type: textarea
    size: large

The default overview (Drafs/Unlisted/Published) of the site will be deleted and I will be left with the textfield.
In Kirby 2 I used the site blueprint to save general data for things like footers/headers and just stuff that is used on all pages generally.

To be able to save general data in fields in site.yml you could work with tabs and have for example an «Options» tab – it’s not possible anymore in K3 to add fields to the site settings. Like this for example:

title: Site

tabs:
  
  content:
    label: Content
    sections:
      drafts:
        headline: Drafts
        type: pages
        status: draft
      unlisted:
        headline: Unlisted
        type: pages
        status: unlisted
      listed:
        headline: Listed
        type: pages
        status: listed

  options:
    label: Options
    sections:
      content:
        type: fields
        fields:
          text:
            label: Text
            type: textarea
            size: large

More about tabs you can find here: Tabs

1 Like

Thanks alot! Great new feature

Just for completeness sake: Another way to add fields would be through a fields section. It’s also possible to add fields in columns.

1 Like