Forum Discussion
Using custom properties in Modern Site pages
Hi Rebecca,
Yes, I did, after lots of painful sessions on the phone with MS showing the problem again and again.
It turned out that the Site Page content type was "sealed" so no additional properties were being added to that type. You can unseal it using the script at https://gallery.technet.microsoft.com/Unseal-sealed-content-654ac401 then you'll have to recreate all of your additional properties (or get them applied to the Site Page content type).
Be aware that, if you add a "yes/no" column it can't be used for filtering in the highlighted content webpart. Apparently this is "by design", but it seems a very strange design to me, so I've added it to UserVoice at https://sharepoint.uservoice.com/forums/329214-sites-and-collaboration/suggestions/36117193-allow-yes-no-columns-to-be-used-for-filtering-si.
Sam
Thanks Sam! I'll give this a go :D
- Rebecca GordonMar 11, 2019Copper Contributor
I altered the script to make it tidier and also so it just runs against the Site Page content type, not all content types. See here for script: http://bexgordon.com/2019/03/cant-add-properties-to-modern-sharepoint-pages/
I still can't get it to show all properties on the actual Page properties webpart on the page - it seems to only show single line text fields? I also tried multiline and yes/no. It does let me set these fields in the page libraries information panel though, whereas before I couldn't see them.
Did you get all of your properties to show on the Page properties webpart Sam?