Skip to main content
You can build a list of the latest news articles in several ways. This page shows two of them: full schemas with references, and an index schema.

Using full schemas

The frontPage schema below lists the 3 latest news articles that match the front page’s culture.
To keep the list up to date, you need to reprocess the frontPage schema whenever a news article is created, updated or deleted. See more about when reprocessing is needed. Below is an example of the news schema including the reprocess action.
Always make your reprocess actions as precise as possible to avoid overprocessing. Typically, you want to reprocess by id, as this is the fastest and most precise option.In this case, you don’t have the id of the front page. But you only have one front page per culture, so you can target that single front page source entity with a filter expression matching the culture.

Using index schemas

Index schemas are a paid add-on. They don’t need reprocessing, and they let you query the index using the Query API for the news articles you want to return, for example based on culture and category.
Here’s a request to the Query API for the newsIndex and the response.