When adding a News (Atlas) web part to a page, you will find that it is not limited in terms of the date of the articles being shown. This is by design to ensure that as much content as possible can be surfaced, but you may wish to limit the feed, for example only showing News from the last 2 weeks.
Edit your News In Focus web part
To follow this guide you will need a page in Atlas with a News (Atlas) web part added to it.
- Edit your page, then edit the News (Atlas) web part:
- In the configuration panel that loads on the right hand side of your screen, add the following into the Query template box (do not delete the existing text!):
(RefinableDate18>={Today-14}) - This statement means that the date of the News article must be more recent than 14 days ago, so anything outside of that range (including News which may have been published in advance of its tagged date) will not be shown in this web part.
Other scenarios
The above knowledge can be used to create filters for any Managed Property which is a Date type field, such as Event Start/End dates, Modified date etc.
You could swap RefinableDate18 for a different RefinableDate and change the operators e.g. <,>,= and number of days to add or subtract to be within range of the query.
Test your query
Having configured the above, test that your web part returns the results you expect. You may want to go to the third page of the configuration panel and set the layout to “Tiles” because this includes a result count which can be very useful for testing, but this is not required.
Once you're happy with the results, you can go ahead and configure any other web part options such as the layout. Make sure you save and/or publish your page once you're done.
Re-use your configured web part
If you have Atlas 3.1 or later you can save the configuration of your web part to be reused on other pages or in other workspaces. To learn about this please see the linked article: Export and Import Settings for In Focus web parts
Comments
0 comments
Please sign in to leave a comment.