The "Site Page" content type is missing its Settings options + Not allowing us to add custom columns

Steel Contributor

I am facing this issue inside our sharepoint online root site collection:- When i tried to add some cusotm properties to our modern site pages, by going to Site Setting >> Site Content Types >> Clicking on the built-in "Site Page" content type. I thought that i will have the options to add some custom columns inside our "Site Page" content type, but i found that the "Site Page "content type does not have any options under its Settings section + There is not any option to add columns to the content type, as follow:-

 

sitecontentype.png

 

While if i create a new site collection let say @ https://ourcompanyname.sharepoint.com/sites/siteA , then the "Site Page" Content type will have options under its Settings section + it will have options to add columns to the content type using the "Add from existing site columns" link, so i were able to add cusotm properties to it, as follow:- 

 

seeeee.png

 

so seems my issue is only happening at the root site collection, and i am not sure how i can fix this?

 

Update-1

 

i try to run this pnp power-shell command to try to remove the read-only from the content type

$cred = Get-Credential  
Connect-PnPOnline -Url hhttps://*.sharepoint.com/ -Credential $cred
$ct = Get-PnpContentType "Site Page"
$ct.ReadOnly = $false
$ct.Update($true)

but i did not get any error,, but at the same time the content type is still un-editable. Also when i try to run this pnp command:-

Get-PnpContentType "Site Page"

i got this error:-

Get-PnpContentType : The content type "Site Page" at "/" is sealed.
At line:1 char:1
+ Get-PnpContentType "Site Page"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Get-PnPContentType], ServerExce
   ption
    + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Cont
   entTypes.GetContentType

 

which gives me an indication that the content type is sealed, so i tried to unseal the content type, as follow:-

 

$cred = Get-Credential  
Connect-PnPOnline -Url https://***.sharepoint.com/ -Credential $cred
$ct = Get-PnpContentType "Site Page"
$ct.Sealed = $false
$ct.Update($true)

 

and i was able to add custom columns to my "Site Page" content type.. but i am not sure if it is a recommended/supported approach to unseal our "Site Page" content type as i did in my last PnP script? and if it is a supported operation then why it is sealed by default at the root site level? again when I created new site collection (also of type classic team site) @ https://ourcompanyname.sharepoint.com/sites/siteA the “Site Page” content type will be unsealed by default.

0 Replies