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

%3CLINGO-SUB%20id%3D%22lingo-sub-285445%22%20slang%3D%22en-US%22%3EThe%20%22Site%20Page%22%20content%20type%20is%20missing%20its%20Settings%20options%20%2B%20Not%20allowing%20us%20to%20add%20custom%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285445%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20facing%20this%20issue%20inside%20our%20sharepoint%20online%20root%20site%20collection%3A-%20When%20i%20tried%20to%20add%20some%20cusotm%20properties%20to%20our%20modern%20site%20pages%2C%20by%20going%20to%20Site%20Setting%20%26gt%3B%26gt%3B%20Site%20Content%20Types%20%26gt%3B%26gt%3B%20Clicking%20on%20the%20built-in%20%22Site%20Page%22%20content%20type.%20I%20thought%20that%20i%20will%20have%20the%20options%20to%20add%20some%20custom%20columns%20inside%20our%20%22Site%20Page%22%20content%20type%2C%20but%20i%20found%20that%20the%20%22Site%20Page%20%22content%20type%20does%20not%20have%20any%20options%20under%20its%20Settings%20section%20%2B%20There%20is%20not%20any%20option%20to%20add%20columns%20to%20the%20content%20type%2C%20as%20follow%3A-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F59522iFC97BB930EB53D78%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22sitecontentype.png%22%20title%3D%22sitecontentype.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhile%20if%20i%20create%20a%20new%20site%20collection%20let%20say%20%40%20%3CA%20href%3D%22https%3A%2F%2Fourcompanyname.sharepoint.com%2Fsites%2FsiteA%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fourcompanyname.sharepoint.com%2Fsites%2FsiteA%3C%2FA%3E%20%2C%20then%20the%20%22Site%20Page%22%20Content%20type%20will%20have%20options%20under%20its%20Settings%20section%20%2B%20it%20will%20have%20options%20to%20add%20columns%20to%20the%20content%20type%20using%20the%20%22Add%20from%20existing%20site%20columns%22%20link%2C%20so%20i%20were%20able%20to%20add%20cusotm%20properties%20to%20it%2C%20as%20follow%3A-%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20174px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F59523i3A51B1FD24DC57DE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22seeeee.png%22%20title%3D%22seeeee.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3Eso%20seems%20my%20issue%20is%20only%20happening%20at%20the%20root%20site%20collection%2C%20and%20i%20am%20not%20sure%20how%20i%20can%20fix%20this%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EUpdate-1%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20try%20to%20run%20this%20pnp%20power-shell%20command%20to%20try%20to%20remove%20the%20read-only%20from%20the%20content%20type%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3E%24cred%20%3D%20Get-Credential%20%26nbsp%3B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EConnect-PnPOnline%20-Url%20hhttps%3A%2F%2F*.sharepoint.com%2F%20-Credential%20%24cred%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%24ct%20%3D%20Get-PnpContentType%20%22Site%20Page%22%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%24ct.ReadOnly%20%3D%20%24false%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%24ct.Update(%24true)%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3Ebut%20i%20did%20not%20get%20any%20error%2C%2C%20but%20at%20the%20same%20time%20the%20content%20type%20is%20still%20un-editable.%20Also%20when%20i%20try%20to%20run%20this%20pnp%20command%3A-%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3EGet-PnpContentType%20%22Site%20Page%22%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3Ei%20got%20this%20error%3A-%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3EGet-PnpContentType%20%3A%20The%20content%20type%20%22Site%20Page%22%20at%20%22%2F%22%20is%20sealed.%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EAt%20line%3A1%20char%3A1%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2B%20Get-PnpContentType%20%22Site%20Page%22%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%20CategoryInfo%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3A%20WriteError%3A%20(%3A)%20%5BGet-PnPContentType%5D%2C%20ServerExce%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%20ption%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20EXCEPTION%2CSharePointPnP.PowerShell.Commands.Cont%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%20entTypes.GetContentType%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhich%20gives%20me%20an%20indication%20that%20the%20content%20type%20is%20sealed%2C%20so%20i%20tried%20to%20unseal%20the%20content%20type%2C%20as%20follow%3A-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%24cred%20%3D%20Get-Credential%20%26nbsp%3B%3CBR%20%2F%3EConnect-PnPOnline%20-Url%20https%3A%2F%2F***.sharepoint.com%2F%20-Credential%20%24cred%3CBR%20%2F%3E%24ct%20%3D%20Get-PnpContentType%20%22Site%20Page%22%3CBR%20%2F%3E%24ct.Sealed%20%3D%20%24false%3CBR%20%2F%3E%24ct.Update(%24true)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20i%20was%20able%20to%20add%20custom%20columns%20to%20my%20%22Site%20Page%22%20content%20type..%20%3CSTRONG%3Ebut%20i%20am%20not%20sure%20if%20it%20is%20a%20recommended%2Fsupported%20approach%20to%20unseal%20our%20%22Site%20Page%22%20content%20type%20as%20i%20did%20in%20my%20last%20PnP%20script%3F%20and%20if%20it%20is%20a%20supported%20operation%20then%20why%20it%20is%20sealed%20by%20default%20at%20the%20root%20site%20level%3F%20again%20when%20%3CSPAN%20class%3D%22comment-copy%22%3EI%20created%20new%20site%20collection%20(also%20of%20type%20classic%20team%20site)%20%40%20%3CA%20href%3D%22https%3A%2F%2Fourcompanyname.sharepoint.com%2Fsites%2FsiteA%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fourcompanyname.sharepoint.com%2Fsites%2FsiteA%3C%2FA%3E%20the%20%E2%80%9CSite%20Page%E2%80%9D%20content%20type%20will%20be%20unsealed%20by%20default.%3C%2FSPAN%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-285445%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Valued 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