Integrating with the Context Module

Video loading...

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 I'm going to demonstrate how you can use the context module
  • 0:09
    along with the date module and our date field
  • 0:12
    and combine them to show a block based on a context.
  • 0:17
    And that context is coming from the date field.
  • 0:19
    So basically, if the date field doesn't match, don't show this block or do show this block.
  • 0:25
    I'm going to go ahead and demonstrate how you can do that going through installing contexts.
  • 0:28
    I'm going to show you that there is a module
  • 0:30
    that comes with the date module you need to install.
  • 0:33
    So let's go ahead and get started.
  • 0:35
    Okay. Just like I said, we're going to use the context module along with our date module
Loading ...

Integrating with the Context Module

Loading...

In this final video Kyle will show us how to use the Date context module, which comes as a part of the Date project, along with the Context module to display some blocks based on the date associated with the content we are viewing. We create two blocks, one for dates in the future, and another for dates in the past. We then configure Context to display the correct block based on the content's date.

Additional resources: