0

I want to be able to filter news posts based on custom meta data, using a dropdown. I want all news posts to display in a list by default, but be able to choose a category from a dropdown and then have it display only news posts with that category. How can I do this?

I have looked at creating an add-in to pull the metadata and create this, but I feel like there must be an easier way that does not require code changes. I think it is possible to filter a list, but I am not even sure how to get my news posts to be in a list collection.

1 Answer 1

0

All your news posts are stored in the Pages library of your site.

To see a list of all your news posts, See all in the upper right of the news section on the published page.

enter image description here

You could also edit the News web part to make it layout as list and add custom metadata as page properties, then filter with page properties:

enter image description hereenter image description here

--------------------------------------Update----------------------------------------

As picture shown, in the filter panel,you could select property name with a dropdown list (equals/Doesn't equal/Begins with/Contains) property value to filter the display list.

However, we could not use property value as a dropdown list, it's necessary to enter the value manually.

enter image description here

7
  • I don't have an option for "Page Properties" in the News webpart filter dropdown, despite having custom metadata on pages.
    – Goulash
    Commented Mar 23, 2021 at 14:47
  • Okay, I've figured out the Page Properties not displaying. Now, how would I allow the user to toggle that filter using a dropdown?
    – Goulash
    Commented Mar 23, 2021 at 14:56
  • I have updated the answer, please check it.
    – Julie_MSFT
    Commented Mar 24, 2021 at 1:50
  • So, I understand that you are configuring the filter with a dropdown in the settings. What I am looking for is a dropdown widget to display on the actual rendered page, which the user of the sharepoint site can use to filter what news is displayed for them on the page.
    – Goulash
    Commented Mar 24, 2021 at 18:16
  • Currently there is not possible unless you edit the news web part.
    – Julie_MSFT
    Commented Mar 25, 2021 at 1:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.