Jul 24 2019 02:22 AM
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?
Jul 24 2019 05:11 AM
Jul 24 2019 06:09 AM
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.
Jul 24 2019 10:02 AM
@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.
Jul 25 2019 01:17 AM
@Susan HanleyI actually have a few different types of custom columns:
Yes/no |
Date and time |
Choice |
One textline |
Managed metadata |
Multiple textlines |
Person or group |
Even the choice column does not show up.
Jul 25 2019 03:47 AM
Solution@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.
Jul 25 2019 04:24 AM
@Susan HanleyYes the columns are associated to the content types. The site was created recently, about two weeks ago. So there is no legacy or anything there.
Jul 25 2019 04:29 AM
@stevenam I would still try again on a new test site. Just to be sure that the site isn’t the issue. If it is the site, you will need to do some additional digging.
Jul 26 2019 06:04 AM
So I created a test site, custom contenttypes and added them to the Sitepages library. Now the columns show up as a filter. Even deleted the default contenttype for the Sitepages library and the filters still show up.
So how do I move forward on this? I tried deleting and adding the custom contenttypes but no matter what I do I can only pick Title as a filter.
Jul 26 2019 06:12 AM
Is there a lot of content in the original site? Can you recreate it easily? Do you have a migration tool that you can use to copy the content to a new site? That is probably what I would do at this point - or use a support ticket. (But re-creating might be faster - especially if the site isn’t live yet.)
Jul 26 2019 06:16 AM
@Susan HanleySo you would advise building a new site? Not just a new library? Recreating is not really a big issue but I want to spend as little time as possible on this. So if recreating a new library will suffice I would obviously go for that option. Will try creating a new library anyway.
Jul 26 2019 07:05 AM
@stevenam I would start over with a new site. Something is hosed in your Site Pages library and rather than creating a new one, if it's not too much work, and since you have already proven the problem is not there in a new site, I think the safest route is a new site.
Aug 01 2019 01:12 AM
@Susan HanleyThank you so much for your help. In that case we will recreate the page. I think the problem is somehow related to the changes I made to the contenttypes. Thanks again!
Feb 25 2020 09:01 AM
@stevenam I ran across a potentially related issue. I had created a column (called Page Catagory) to label my various News items, to filter and display on appropriate pages. I created it using the MS described method (within the Pages library, adding on the right side of the All Items view). All worked fine. Then I decided I needed to create that column at the top level of the site so that potential sub-sites (yes, we still have need of these) could also use the column, and I could add it on to my Blog content type. After swapping out the top-level column for the Library-only column, the news filters could no longer see the Page Category column. I recreated the column at the Pages library level (now both columns are there - different names, of course), and I can again filter on the column. I believe MS has a glitch -- only columns created in the Pages library will surface in the News filter.
Feb 25 2020 09:11 AM
Mar 23 2020 10:16 AM
@Susan Hanley I'm having a similar issue. I've added a category column on the SitePages, but it doesn't show up on the individual post pages. I'm not sure I've set it up correctly.
Mar 23 2020 10:28 AM
Mar 23 2020 10:33 AM
@Susan Hanley how do I know if I've added it to all content types? Where would I see this?
Mar 23 2020 10:54 AM
Jun 05 2020 01:36 AM - edited Jun 05 2020 01:36 AM
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 here).
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