I want to have 2 default chunks instead of 1 when making a new page.
The reason is, my main template is split into 2 sections and I want to start with 2 chunks.
What I would like to do is edit the page module so that whenever a user creates a new page they will always start with 2 chunks that I have named and defined.
What would I have to modify in order to achieve this?
Note: I already modified the page module and database to add some custom fields. I assume this is the same deal but I can’t find where the initial chunk is being created…
Thanks to @nick-pyett. Here is the code that worked for me.
this is the final code:
I looked to see where the id ends up. It seems to get appended to the name of each element. Like so:
The actual slug goes into the first input on the chunk which would be the slug you would use to call it in a page.