Creating an archived content block and view

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:

Creating an archived content block and view

Getting ready

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.

How to do it...

We will begin by creating a new View that will include Page ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.