O'Reilly logo

Drupal 7 Cookbook by Dylan James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required