Step by Step Setup of Calendar View

Last updated on
30 April 2025

This is a step-by-step description of setting up a Calendar view.

Why not use the Event module?

Using the Event module is perfectly acceptable, quicker/simpler way to get a basic calendar running on your site. If you need something more flexible/extensible, here's how to create a Calendar view. If you've got other differentiating factors, list them in the comments, and I'll incorporate them here.

Requirements

The Calendar module has the following requirements

Install the modules

Download and extract the modules in your /sites/all/modules directory.
Go to Administer › Site building > Modules and enable:

  • Content
  • Date (under CCK)
  • Date API (under Other)
  • Calendar
  • Views
  • Views UI

Create a custom Content Type

Go to Administer › Content management > Add Content Type

  • Name=Performance (or "event" or "meeting" or whatever you want to call it)
  • Type=performance
  • Description = Sing, Sing a song...
  • Whatever you prefer for the rest of the form
  • Save the Content Type

Edit the content type again and then select Add field

  • Name = Time
  • Field Type = Date / Selected list (or Date / Textfield with javascript pop-up calendar - if you have jstools enabled)
  • Click "Create Field" and you'll be taken to second form
  • Widget = Selected List (or Textfield with javascript pop-up calendar - if you have jstools enabled)(not sure why you have to select this twice)
  • Label = Time
  • Help Text = whatever
  • Under Data settings:
    Required: checked
    Multiple Values: not checked
  • Input Options
    Granularity: Year,Month,Day,Hour, Minute (but not second) selected
    To Date: Optional
  • Click Save Field Settings

Create a node

Create content > Performance

  • Title = Check your calendar
  • From Date = This Friday at 3:00pm
  • To Date = blank
  • Body = Hope I'm doing something fun this weekend
  • Click Submit

Modify the default Calendar view

Go to Administer › Site building > Views and you should have a Calendar View
Click Add..

  • The info under Basic Information, Page, and Block are all fine.
  • Under Fields delete the Node: Updated Time
  • Then under Add Field, select Date:Time and click Add Field
  • Next to Time Field, Label can be blank, Handler needs to be Do Not Group Multiple Values
  • Arguments can all be left alone
  • Under Filters ... Add Filter, select Node: Type and click Add Filter
  • Operator = Is one of. Value = Performance
  • Exposed Filters can be left alone
  • Under Sort Criteria, delete Node: Updated Time, and under Add Criteria, select Date: Time (field_time) and click Add Criteria button. Leave the Order Ascending

Click Save and you're back at the Administer › Site building > Views. You should see the default calendar view with an Overridden status. And at the top will be your new calendar view that uses your CCK node called Performance

Click on the link under URL and you should see your performance on the correct day. If everything looks OK, go back and edit the view again and in the Page > Menu section, check Provide Menu. By default, the menu link will appear in the Navigation menu, but you can move it wherever by going to Administer > Site Building > Menus.

Help improve this page

Page status: Not set

You can: