Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Dates as Views Contextual Filters

Video loading...

Transcript language code: 

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:06
    In this chapter we are going to use dates as views arguments,
  • 0:10
    also known as contextual filters.
  • 0:12
    The filter will be used to limit the content displayed
  • 0:15
    to the correct time period as specified.
  • 0:18
    Using a pager in conjunction with a contextual filter is an alternative to exposed filters.
  • 0:24
    And here is an example of what we'll be building.
  • 0:28
    On the left column we have a block with some navigation up here.
  • 0:34
    And as we click throughout the months, you can see that it's only displaying content
  • 0:42
    where the date value in that content field that we have is in that month.
  • 0:48
    We can click through. The entire page is not reloading as we're clicking through this.
Loading ...

Dates as Views Contextual Filters


In this chapter we will walk through using dates as contextual filters, also known as arguments in Drupal-speak. We will create a block which shows us content per month, based on pur date field, and allow users to page through the months.

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.