Default blocks in a layout

Hello everyone,

I am looking for a way to have default blocks in a layout when a page gets created.
For example a basic setup would be an empty headline and text block already inside a first layout.
How can something like this be achieved?

(I already thought about a hook with a raw string but the layouts have ids, which I don’t know how to create)

Thanks very much!

You can set up default blocks via the default option.

This should give you one 1/1 layout with a text block on page creation:

layout:
  type: layout
  layouts:
    - "1/1"
    - "1/2, 1/2"
    - "1/4, 1/4, 1/4, 1/4"
    - "1/1, 1/3, 2/3"
    - "1/1, 2/3, 1/3"
    - "1/2, 1/2, 1/3, 1/3, 1/3"
  default:
    - type: text
      content:
        text: Blabla

oh wow, just as one would expect! :wink:
thanks a lot!

(maybe a short section in the layout field docs would be useful)