Forum Discussion
Page properties not visible for filtering news webpart
We created a modern communication site to use as an intranet site. On that site we want to use two news webparts: one for corporate messages and one for news with lower importance. I want to use a filter one a custom (site) column in the site pages library: important messages, which is a yes/no type. This is one of a few custom site columns we created. None of the columns show up in the news webpart page properties filter. Only the title is available.
Do we need to change something in the columns to make them show up?
stevenam Can you see that each column is associated to the content types in library settings? I would try on a new site and see if the issue is the site itself. I was not able to filter on Yes/No columns in the News web part, but I use choice columns all the time and they work.
29 Replies
- sonivivek17Copper Contributor1. Go to Site Pages -> Library Settings-> Versioning Settings --> Draft Item Security
2. Change it to Any Users who can read items.
3. It should show up the page properties & its value - Nicholas SperandeoCopper Contributor
If you are on a registered HUB site, when "All sites in the HUB" or "Select sites" is selected as a news source, it can only filter on a Managed Property. If you select "This site" as the news source then you can filter on Page Properties such as a choice column in the site pages library.
- lionelbornCopper Contributor
stevenam I've had the same problem over here and I followed all steps explained in the comments above. It didn't work.
Coincidentally I found the solution today: My custom page property had a space in the name, e.g. "Prop A". When I had removed the space (renaming the property to "PropA") IT FINALLY WORKED!
It would be great for future cases if you add a hint somewhere that custom properties should not contain space characters (and other special chars?) for making full use of those.
- NikoVBCopper Contributor
Tried quite a few of the above things and nothing worked when I was trying to use it for news selected from several sites.
If I changed my settings to This site, all the properties were available all of a sudden in the filters...So I don't have a solution for news from subsites for example, but I hope this at least helps some of you to get some clarity.
- anthony tudorCopper Contributor
Has anyone tried to use a lookup column within the Page Properties web part? I've been wrestling with a similar issue to this myself. I've found that for me I either need to unseal the Site Page content type to reveal extra filter choices within the page properties web part, or it only affects older sites (possibly pre-September 2019 as described https://sharepoint.stackexchange.com/questions/252495/why-site-page-content-type-is-missing-the-options-under-its-settings-section).
So as Susan and others have said, creating new sites seems to rectify the issue for most, but I'm using lookup columns as my library form has dependant drop-downs and the columns won't show is the page properties webpart. Is there a list of supported field types or anything?
Cheers,
Anthony- Steph_AusCopper Contributor
anthony tudor Did you find a solution to the problem of Lookup columns not being supported in the News webpart filter? I have looked all over the place and i could only find that Lookup columns in the Site Pages Library is supposed to be a supported page property. However i have tested on two different Teams sites that if i create a lookup column that is won't show up in the page properties filter for the News webpart. It is really frustrating because i also can't dynamically filter the news webpart either.
- amira198715Copper Contributor
Steph_Aus hello , did you find a solution for your lookup field on the web part , i'm facing the some issue
- I don’t know if this is obvious or not, but have you added the site column to the Site Pages library? Make sure you check the box to apply to all content types in the library. You can currently only filter on news on the local site, not if you are pulling news in from other sites.
- NikoVBCopper Contributor
This filtering option still doesn't work when using 'Select sites' vs 'This site'.
Do you know whether there is a plan to work on this feature - because this makes things harder to work with news with subsites?
Thanks for sharing your perspective.- Sorry, I don’t have any insights on this.
- stevenamBrass Contributor
Thank you for your reply Susan.
Yes I have added the site column to the Site Pages library. I also checked to box to apply to all content types. The page on which I want to use the filtered webpart is on the same site as the news pages itself (even in the same library actually).
I can use the columns as filters in the Site Pages library but they do not show in the filter option within the news webpart.
stevenam This may be a problem with the column type of Y/N. I just tried a Y/N column in a test site I have and it didn't appear as a choice to filter in News. Try replacing it with a Choice column with values of Yes and No. It will definitely work with Choice columns.