We have already seen how to create a News listing view. In this recipe we will build on the idea of the listing view and add a block which summarizes the News article content into a list of months and years, where the links outputted in the block open a view which is dynamically filtered to display articles from a specific month and year:
To complete this recipe you will need to have first completed the first recipe of this chapter, Creating a news listing view. We will be making use of the News article content type.
We will begin by creating a new View that will include Page and Block displays. We will then configure the settings of these displays by adding a dynamic filter, which filters on the Created date. Finally we will add the new block to the theme.
1. Select Structure from the admin menu, then select Views.
2. Select +Add new view.
3. In the View name field, enter Archived news.
4. In the first fieldset, configure...