Forum Discussion

GreenBlueToZu's avatar
GreenBlueToZu
Copper Contributor
Sep 21, 2022
Solved

How to make a multi-site metadata filter for the news webpart work?

I have a custom metadata property for a news expiration date. On a news page, people can edit the expiration date and set the page to expire by whichever date they choose. This works on each site. Ho...
  • GreenBlueToZu's avatar
    GreenBlueToZu
    Sep 27, 2022

    DaveMehr365 

    Hi David,

    I made my own custom solution. I made a custom metadata property called isExpired. This property outputs "YES" in text form if it detects a page has expired. If a page hasn't expired, it outputs "NO". I made it output text rather than a yes/no, because I heard the news webpart doesn't support the yes/no content type. The isExpired column/property looks at my expiration date column that holds the expiration date. The isExpired column is a calculated column. This is the formula I used for the calculated column: 

    =IF([Expiration Date]<TODAY(),"YES","NO")

     

    On the news web part, I'm now able to filter using my isExpired property. I filtered by managed property, and then isExpired contains NO.

     

    My filter is working now. I appreciate that you tried to help though. Have a good day~