Forum Discussion
SP_Bogdan
Apr 08, 2019Copper Contributor
Custom Page Layouts with Modern Pages in SharePoint 2019
Hello Is there any way to provision custom page layouts associated with content types with modern pages in SharePoint 2019? For example in an intranet scenario we have various custom content types t...
- Apr 09, 2019Unfortunately the answer is No, even we don't have yet custom page layouts in SPO (they are coming)
Apr 09, 2019
No to my knowledge, the thing here is that you cannot create custom layouts...but you could "simulate" it by adding WebParts to existing layouts and here the extension idea could work
Deleted
Apr 09, 2019Are you aware of any code that you could point me to that allows you do add a section to a page, configure the section's layout (like one column, 2 column, etc ) and code that allows you to add webparts to pages and sections in the right columns? Thanks
- Beau CameronApr 09, 2019MVP
Deleted You can use CSOM for this. I personally use PnP to do this kind of work. They have libraries for PowerShell and for C# to help you do this.
Here is a great video from a while back on how to do this.- DeletedApr 09, 2019
Beau Cameron Thanks for the suggestion. Could all that code be done client side somehow and available to content users via GUI? Obviously content authors don't have access to C# / CSOM and so on. They want an easy workflow. Create a new page, click a button to change layout and start content authoring.
Thank you
- Beau CameronApr 09, 2019MVP
Deleted Look into PnPJs, they have some functionality to make it easier to work with pages.
https://pnp.github.io/pnpjs/sp/docs/client-side-pages/