Forum Discussion
Adding custom page metadata on existing modern sites?
We've seen this exact behavior on multiple site collections, including the root. I haven't seen any formal documentation from MSFT on this, but it would appear the Site Page content type is "special" in some way. Additionally, we've added columns in the Site Pages library and saw they were not indexed properly.
The fix for all our issues on customizing the Site Pages was to create a custom content type inheriting from Site Page. If you're doing basic stuff with the new Page Properties model used in News and Highlighted Content web parts, this also works fine in that scenario. Oddly enough, while those custom columns don't show up in the search index, they worked fine when used as Page Properties.
I choose not to complain to much because modern is so vastly superior an experience to classic :)
Matthew MasonI also tried to create a new site content type which inherent from the built-in "Site Page" content type. and then i added the custom columns to the custom content type. after that i added the custom content type to the "Site Pages" library. but the problem i faced is that i were not able to force any new modern page to be created using the custom content type. as when users click on the "Add a Page" link, as follow:-
the built-in "Site Page" content type will still be used.. and i did not find a way to force any new modern page to use the custom content type by default?? any advice?