Create page template with preselected blocks programmatically
Permalink
New to Concrete 5, and have a question.
I want to create a new page type linked to a specific page template that has the blocks pulled in by default. I can see how to do this via the interface (https://documentation.concrete5.org/tutorials/how-to-recreate-the-blog-and-blog-entry-page-types-in-5-7) but how can I do this programmatically so that I can include it in a package?
It's primarily around predefining the which blocks should be used - editing the output defaults - that I can't figure out programmatically.
Thanks
I want to create a new page type linked to a specific page template that has the blocks pulled in by default. I can see how to do this via the interface (https://documentation.concrete5.org/tutorials/how-to-recreate-the-blog-and-blog-entry-page-types-in-5-7) but how can I do this programmatically so that I can include it in a package?
It's primarily around predefining the which blocks should be used - editing the output defaults - that I can't figure out programmatically.
Thanks
https://documentation.concrete5.org/developers/packages/concrete5-ci...
And for an example of how to do it look in https://github.com/concrete5/concrete5/blob/develop/concrete/config/... starting at line 131