Forum Discussion
C# ClientContext - Removing Image from Page Banner on Modern Page - SP 2019
Carlos_Marins Thanks for getting back.
Setting it to "1" (casted to the ClientSidePageHeaderLayoutType, since that is the type that CSOM is looking for) still has no effect, unfortunately.
We are currently opting to make the change through JS instead. I'll try to give an update where that leads.
Hi AS911,
Are you using the CSOM library? Which version? Using the latest PnP PowerShell I was able to save a page with the Header set to NoImage.
I am also looking for a way to have a parameter -HeaderLayoutType(something like that) included in the Add-PnPClientSidePage so this problem is solved.
- AS911Nov 27, 2019Copper Contributor
Hey, Carlos_Marins.
We are using the latest SharePointPnPCoreOnline (v3.15.1911), which uses the Microsoft.SharePointOnline.CSOM (>= 16.1.19404.12000).
We opted to just remove the page header through an Application Extension SPFx, then have a webpart read the site page properties to create the title as needed.
So problem is "resolved", as in we found an alternate solution that did not involve the PnPClientSidePage commands that suited our needs.