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! 
thanks a lot!
(maybe a short section in the layout field docs would be useful)
This does not work for me. I just tried it with the latest 4.0 Version.
Do you know if this is related to the update?
I just realized the Problem.
It only creates the prepopulated Layout on Page creation. Which works fine.
I wonder if there is a way to prepopulate a layout with each Layout creation?