Forum Discussion
Communication site - problem with using refineable date filter on highlighted content
I'm trying to display announcements on our communications site homepage. I'm using the announcements app to create the underlying announcements list.
On the homepage I can use the highlighted content on pages and filter successfully on SPcontenttype=announcement without any issues
However I also want to filter to only show announcements which haven't expired (based on the expires date in the list).
As expires doesn't appear as one of the standard filter options, I have mapped Refinabledate00 to ows_Expires (as Expires is the key field in the announcements list). I have then added a second filter in the highlighted content part to check for Refineabledate00 greater than [Today]
However I can't get this to work at all. It just continues to display all announcements regardless of date. Am I doing anything wrong?
Another issue is that if a user clicks on "see all" against the displayed announcements they are then taken to a blank page with a message that says "We didn't find anything to show here"
3 Replies
Hi Deleted,
It sounds like something might still be wrong with you managed property:
I would porobably first create a traditonal search web part as described here:
http://www.techmikael.com/2014/02/sample-on-how-to-use-content-search-to.html
then you will have a bit more control over what is happening. Also the debug options are easier. As it all uses the same managed properties you should be able to identify the issue with these properties quicker.
- Deleted
Hi Pieter Veenstra
Many thanks for your response. As my site is using modern sharepoint the content search webpart is no longer available when I try to follow the steps in the article. Was wondering if you had any advice on how to work around the fact that content search webpart is missing?Hi Deleted,
It doesn't really matter where the search web part is added to a page as I would only use to verify if there is a problem with the managed property.
So you could create a tradional team site collection or publishing portal and then add the search web part there. If the Managed Property works on the new site collection then there is no reson why it would fail in the modern webparts.