Closed raymondlittle100 closed 6 years ago
OneColumnFullWidth is only allowed on communication sites...do you see the issue on a communication site? If yes, what's the version you're using?
Thanks for the response.
Is that a specific PnP rule or does it have a wider reason? I have a team site and I have created modern pages on this. One of these pages is setup with a one column section and a web part in this. I am trying to programmatically update this web part but i get this error.
On team sites you would use all except the OneColumnFullWidth section type. The reason is alignment with the UI: on a team site you can't choose the OneColumnFullWidth section type from the UI, while this does work on communication sites.
I never specifically selected this layout it was the one that was there by default. Interestingly I updated the SharePointPnPCoreOnline NuGet package to 2.18.1709 and that now seems to let me update with the same page without any errors
There was indeed an error fixed for this, but that was already a while ago. Good it's then resolved. Will close this issue now.
I was using the PnP Sites Core Microsoft.SharePointOnline.CSOM NuGet package to test adding a custom SPFx web part to a modern page with single column, however it errors with the details below
"You can't use a OneColumnFullWidth zone in this site template (STS)"
Category
[ ] Bug
Environment
[ ] Office 365 / SharePoint Online