Home

Using custom properties in Modern Site pages

%3CLINGO-SUB%20id%3D%22lingo-sub-268006%22%20slang%3D%22en-US%22%3EUsing%20custom%20properties%20in%20Modern%20Site%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-268006%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20very%20excited%20to%20see%20the%20recent(ish)%20announcement%20that%20MS%20had%20released%20the%20ability%20to%20add%20meta%20data%20(properties)%20to%20Modern%20Site%20Pages%20and%20then%20allow%20you%20to%20filter%20by%20this%20in%20the%20highlighted%20content%20webpart%2C%20but%20I've%20been%20having%20problems%20actually%20using%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20followed%20the%20instructions%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-gb%2Farticle%2Fview-edit-and-add-page-properties-778018d3-8269-4fd2-a55d-8c0e5b72b938%3Fui%3Den-US%26amp%3Brs%3Den-GB%26amp%3Bad%3DGB%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-gb%2Farticle%2Fview-edit-and-add-page-properties-778018d3-8269-4fd2-a55d-8c0e5b72b938%3Fui%3Den-US%26amp%3Brs%3Den-GB%26amp%3Bad%3DGB%3C%2FA%3E%20to%20add%20a%20property%20but%20I'm%20not%20able%20to%20see%20it%20in%20the%20places%20where%20it's%20telling%20me%20it'll%20be%20displayed%20including%20the%20page%20properties%20panel%20and%20the%20options%20within%20the%20highlighted%20content%20webpart.%26nbsp%3B%20On%20closer%20inspection%20it%20appears%20that%20the%20new%20properties%20aren't%20being%20added%20to%20the%20%22Site%20Page%22%20content%20type%2C%20only%20the%20other%20available%20content%20types%20including%20wiki%20pages%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20any%20advice%20of%20how%20to%20get%20this%20working%3F%26nbsp%3B%20I've%20tried%20on%20several%20different%20tenants%20(as%20it's%20needed%20everywhere)%20but%20it's%20not%20working%20on%20any%20of%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-268006%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESite%20Page%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-364556%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20custom%20properties%20in%20Modern%20Site%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-364556%22%20slang%3D%22en-US%22%3E%3CP%3EI%20altered%20the%20script%20to%20make%20it%20tidier%20and%20also%20so%20it%20just%20runs%20against%20the%20Site%20Page%20content%20type%2C%20not%20all%20content%20types.%20See%20here%20for%20script%3A%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fbexgordon.com%2F2019%2F03%2Fcant-add-properties-to-modern-sharepoint-pages%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fbexgordon.com%2F2019%2F03%2Fcant-add-properties-to-modern-sharepoint-pages%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20still%20can't%20get%20it%20to%20show%20all%20properties%20on%20the%20actual%20%3CSTRONG%3EPage%20properties%20webpart%3C%2FSTRONG%3E%20on%20the%20page%20-%20it%20seems%20to%20only%20show%20single%20line%20text%20fields%3F%20I%20also%20tried%20multiline%20and%20yes%2Fno.%20It%20does%20let%20me%20set%20these%20fields%20in%20the%20%3CSTRONG%3Epage%20libraries%20information%20panel%3C%2FSTRONG%3E%20though%2C%20whereas%20before%20I%20couldn't%20see%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20get%20all%20of%20your%20properties%20to%20show%20on%20the%20Page%20properties%20webpart%20Sam%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-333979%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20custom%20properties%20in%20Modern%20Site%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-333979%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Sam!%20I'll%20give%20this%20a%20go%20%3AD%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-321090%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20custom%20properties%20in%20Modern%20Site%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-321090%22%20slang%3D%22en-US%22%3E%3CP%3ESam%2C%3C%2FP%3E%3CP%3EKnowing%20how%20to%20unseal%20the%20SitePages%20content%20type%20was%20quite%20helpful.%20Thanks%20for%20sharing!%20Prior%20to%20that%20the%20Page%20Properties%20simply%20was%20not%20useful.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlas%2C%20what%20some%20of%20us%20is%20looking%20for%20is%20a%20way%20to%20surface%20the%20site%20pages%20lib%20default%20metadata%2C%20like%20created%2C%20created%20by%2C%20modified%2C%20and%20modified%20by.%20Even%20tried%20calculated%20columns%20and%20lookups%20to%20the%20root%20%5Bcreated%5D%20etc%20and%20no%20joy.%3C%2FP%3E%3CP%3EI%20mention%20it%20here%20in%20case%20Microsoft%20is%20reading%20this.%20Seems%20in%20my%20research%20that%20*many*%20people%20have%20been%20wanting%20this%20function%20for%20years.%20If%20page%20properties%20gets%20any%20engineering%20focus%2C%20this%20would%20be%20nice%20to%20have!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-291539%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20custom%20properties%20in%20Modern%20Site%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-291539%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Rebecca%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20I%20did%2C%20after%20lots%20of%20painful%20sessions%20on%20the%20phone%20with%20MS%20showing%20the%20problem%20again%20and%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20turned%20out%20that%20the%20Site%20Page%20content%20type%20was%20%22sealed%22%20so%20no%20additional%20properties%20were%20being%20added%20to%20that%20type.%26nbsp%3B%20You%20can%20unseal%20it%20using%20the%20script%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2FUnseal-sealed-content-654ac401%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgallery.technet.microsoft.com%2FUnseal-sealed-content-654ac401%3C%2FA%3E%20then%20you'll%20have%20to%20recreate%20all%20of%20your%20additional%20properties%20(or%20get%20them%20applied%20to%20the%20Site%20Page%20content%20type).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBe%20aware%20that%2C%20if%20you%20add%20a%20%22yes%2Fno%22%20column%20it%20can't%20be%20used%20for%20filtering%20in%20the%20highlighted%20content%20webpart.%26nbsp%3B%20Apparently%20this%20is%20%22by%20design%22%2C%20but%20it%20seems%20a%20very%20strange%20design%20to%20me%2C%20so%20I've%20added%20it%20to%20UserVoice%20at%20%3CA%20href%3D%22https%3A%2F%2Fsharepoint.uservoice.com%2Fforums%2F329214-sites-and-collaboration%2Fsuggestions%2F36117193-allow-yes-no-columns-to-be-used-for-filtering-si%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint.uservoice.com%2Fforums%2F329214-sites-and-collaboration%2Fsuggestions%2F36117193-allow-yes-no-columns-to-be-used-for-filtering-si%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-291423%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20custom%20properties%20in%20Modern%20Site%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-291423%22%20slang%3D%22en-US%22%3E%3CP%3EDid%20you%20ever%20get%20this%20resolved%3F%20I'm%20having%20the%20same%20issue%20on%20my%20tenant.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20a%20classic%20site%20collection%20using%20the%20modern%20UI.%20I%20added%20a%20bunch%20of%20columns%20to%20all%20content%20types%20in%20the%20pages%20library%20and%20they%20don't%20show%20anywhere%20on%20the%20front%20end%2C%20not%20in%20the%20properties%20pane%2C%20not%20in%20the%20page%20details%20area%2C%20not%20in%20the%20page%20properties%20web%20part%20%3A(.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-271458%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20custom%20properties%20in%20Modern%20Site%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-271458%22%20slang%3D%22en-US%22%3EUnfortunately%20I%20think%20you%20are%20in%20Microsoft%20Support%20territory%20if%20you%20aren't%20able%20to%20get%20that%20far%20with%20the%20instructions%20%3A-(%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-271457%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20custom%20properties%20in%20Modern%20Site%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-271457%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Ryan%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20reply.%26nbsp%3B%20My%20problem%20is%20actually%20before%20you%20even%20get%20to%20looking%20at%20the%20Highlighted%20Content%20webpart%20-%20as%20I%20couldn't%20enter%20any%20data%20to%20the%20columns%20I%20added%2C%20I%20never%26nbsp%3Bbothered%20looking%20at%20the%20webpart.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHaving%20now%20looked%2C%20the%20columns%26nbsp%3Bthat%20I've%20added%20aren't%20showing%20in%20the%20webpart's%20list%20of%20possible%20properties%20to%20filter%20by%20either.%26nbsp%3B%20I%20can't%20help%20but%20think%20it's%20got%20to%20be%20because%20the%20columns%20I'm%20adding%20aren't%20being%20associated%20with%20the%20Site%20Page%20content%20type%2C%20but%20I%20am%20following%20the%20instructions%20exactly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-271447%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20custom%20properties%20in%20Modern%20Site%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-271447%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Sam%2C%20not%20resolving%20your%20issue%20but%20adding%20additional%20details.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20a%20multi-month%20support%20ticket%20with%20Microsoft%20when%20it%20came%20to%20creating%20views%20and%20surfacing%20them%20as%20document%20library%20web%20parts%20for%20modern%20pages.%20They%20views%20would%20constantly%20surface%20errors%20in%20the%20form%20of%20a%20dropped%20ice%20cream%20cone%20or%20broken%20bicycle%20with%20little%20help.%20I'm%20not%20surprised%20that%20the%20highlighted%20content%20web%20part%20isn't%20work%20for%20you%20since%20it%20is%20not%20as%20powerful%20as%20the%20Content%20Query%20Web%20Part%20(CQWP)%20of%20previous%20SharePoints.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%20able%20to%20pull%20using%20a%20classic%20page%20and%20a%20CQWP%20to%20make%20sure%20the%20data%20is%20at%20least%20pulling%20correctly%3F%20Not%20resolving%20your%20issue%20but%20at%20least%20would%20confirm%20you%20have%20set%20up%20your%20site%20page%20columns%20correctly%3C%2FP%3E%3C%2FLINGO-BODY%3E
Sam Churchill
New Contributor

Hi all,

 

I was very excited to see the recent(ish) announcement that MS had released the ability to add meta data (properties) to Modern Site Pages and then allow you to filter by this in the highlighted content webpart, but I've been having problems actually using it.

 

I followed the instructions at https://support.office.com/en-gb/article/view-edit-and-add-page-properties-778018d3-8269-4fd2-a55d-8... to add a property but I'm not able to see it in the places where it's telling me it'll be displayed including the page properties panel and the options within the highlighted content webpart.  On closer inspection it appears that the new properties aren't being added to the "Site Page" content type, only the other available content types including wiki pages etc.

 

Does anyone have any advice of how to get this working?  I've tried on several different tenants (as it's needed everywhere) but it's not working on any of them.

 

Thanks,

 

Sam

8 Replies

Hi Sam, not resolving your issue but adding additional details.

 

I had a multi-month support ticket with Microsoft when it came to creating views and surfacing them as document library web parts for modern pages. They views would constantly surface errors in the form of a dropped ice cream cone or broken bicycle with little help. I'm not surprised that the highlighted content web part isn't work for you since it is not as powerful as the Content Query Web Part (CQWP) of previous SharePoints.

 

Are you able to pull using a classic page and a CQWP to make sure the data is at least pulling correctly? Not resolving your issue but at least would confirm you have set up your site page columns correctly

Hi Ryan,

 

Thanks for your reply.  My problem is actually before you even get to looking at the Highlighted Content webpart - as I couldn't enter any data to the columns I added, I never bothered looking at the webpart.

 

Having now looked, the columns that I've added aren't showing in the webpart's list of possible properties to filter by either.  I can't help but think it's got to be because the columns I'm adding aren't being associated with the Site Page content type, but I am following the instructions exactly.

 

Sam

Unfortunately I think you are in Microsoft Support territory if you aren't able to get that far with the instructions :-(

Did you ever get this resolved? I'm having the same issue on my tenant.

 

It's a classic site collection using the modern UI. I added a bunch of columns to all content types in the pages library and they don't show anywhere on the front end, not in the properties pane, not in the page details area, not in the page properties web part :(.

 

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-ye....

 

Sam

Sam,

Knowing how to unseal the SitePages content type was quite helpful. Thanks for sharing! Prior to that the Page Properties simply was not useful.

 

Alas, what some of us is looking for is a way to surface the site pages lib default metadata, like created, created by, modified, and modified by. Even tried calculated columns and lookups to the root [created] etc and no joy.

I mention it here in case Microsoft is reading this. Seems in my research that *many* people have been wanting this function for years. If page properties gets any engineering focus, this would be nice to have!

Highlighted

Thanks Sam! I'll give this a go :D 

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?

Related Conversations
Yammer Datacenter US/EU
Joseph Demmelmaier in Yammer on
2 Replies
Macro Using a Relative Function for all Sheets
Ana McCorkhill in Excel on
2 Replies
MS Teams real life use cases
Deleted in Microsoft Teams on
6 Replies