How to Create Calendars in Drupal


We’re going to show you how to create an event calendar in Drupal.

This tutorial is ideal for people who want to show a monthly, weekly or daily list of upcoming events.

First, we’ll show you how to set up a basic Calendar and then we’ll modify it to the needs of your content.


You’ll need to enable and install these modules:

When you’re enabling these modules, make sure to enable both Date API and Date Views.

Setting up the calendar

Go to Structure > Views > Add view from template.


You’ll now see a variety of default Views that can be created.

  • Click add next to “A calendar view of the ‘created’ field in the ‘node’ base table”.
  • Choose a name of your new Calendar view.
  • Click Continue,
  • Scroll to the bottom of the page for the preview.
  • You’ll see that there’s a calendar view with content inside.
  • Click Save in the top-right corner of your View.
  • Visit the site’s homepage.
  • There will be a link in the Navigation menu to your Calendar.
  • You’ll see your calendar on your site. The first tab will be a Month view.
  • Click the tabs across the top to get a Week, Day and Year view:

At the moment the calendar looks good, but we have some problems:

  • The calendar is showing all of the content on our site, not just events.
  • The calendar is sorting the content by the date it was published, not the date the event is happening.

Let’s modify the calendar to fix those problems.

Modifying the Calendar

The first thing we need to do is make sure we have a place to list our Events. If you haven’t done so yet. we’ll create a content type called Events.

  • Go to Structure > Content types > Add content type
  • Enter Events as the Name
  • Click Save and add fields
  • Create a field called Date and choose Date as the type of data to store.
  • Click Save, then Save field settings, then Save settings.

Your Events content type should like at least a little like this:

  • Go to Structure > Views
  • Click Edit in the row for our Calendar view.

We need to change two things on the left-hand side of our view. We need to change:

  1. Fields
  2. Filter Criteria
  3. Sort Criteria

First, let’s change the Fields. We’re going to remove the date that the content was posted to our site.

  • Click Content: Post Date
  • Click Remove

Now we’re going add the date of the events:

  • Click Add next to Fields.
  • Choose Content: Date
  • Click Apply (all displays) twice

When you’re finished, your Fields area will look like this.


Second, we’re going to use Filter Criteria to make sure that only our Events show on the calendar.

  • Click Add next to Filter Criteria.
  • Choose Content: Type
  • Click Apply (all displays)
  • Choose “Is one of” and then “Events”.
  • Click Apply (all displays)

Your Filter Criteria will look like this:


Now we need to look to the right-hand side of our Views editing screen.

  • Under Contextual Filters, click Date: Date (node) (Content: Post date)
  • At the top of the screen, make sure you are configuring this option for All displays:
  • Uncheck Content: Post date
  • Check Content: Date (field_date)
  • Click Apply (all displays)
  • Check the preview of your view and your events should be showing on the date they will happen.
  • Click Save
  • Visit your finished calendar on the front of your site.


  • Steve Burge

    Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

0 0 votes
Article Rating
Notify of

Newest Most Voted
Inline Feedbacks
View all comments
10 years ago

Is there a way to create categories within a calendar. For example, the full calendar is for events. When entering information, events can be “Movies” or “Concerts” or “Plays.” Check boxes. Then there is a calendar that shows all events…or a page that shows only Movies…or a view that shows Concerts and Plays. Perhaps some kind of color in the display?

10 years ago

Hello. Very nice tutorial.

Is it possible, using the Calendar module, to have a calendar available for each logged-in user that they can use for their own appointments? It would be a nice resource for authenticated users. Thank-you.

10 years ago

Thanks,Steve.I need it.

10 years ago

Is there a tutorial/module/widget to have one event that takes place daily/ every friday / every monday and tuesday?

10 years ago

Thanks for the clear walk-through. It’s hard to find good beginner-level examples like this one.

10 years ago

Hi Steve,
I am not sure if my question is relevant this or not but i am sure you’ll find out from my question that i am very beginner in drupal and require some assistance with our existing site.

We are running D6 and LDAP module is enabled where user can login only with LDAP authentication. their is section where user book rooms for meetings and as user mentioned that previously they use to see who booked room when they click on event under calendar, (created by Joe Clark on 13-05-2013 – 10:43) but now its only shows Created by on 13-05-2013 – 10:43
Can you please assist me on this?

Much appreciated for your help and support.


Sujay Uvari
Sujay Uvari
9 years ago

Hi Steve Burge,

Woww…. Its really working… Explained with each and every steps. Even first standard student can do this. Thanks for such a nice blog….

9 years ago

Great tutorial, thanks.

9 years ago

is there a way to add either a tab or button (next to >) which will bring the user back to today’s date? (now)

9 years ago

Thank you very much. This post helped me a lot.

9 years ago

How do you create repeating events?

9 years ago


thank you very much for your tutorial. It is great!

I have a problem with month view in firefox. The Month, Week, Day, Year bar does not display correctly.

Can you help me to fix this? I guess I have to put some -moz in .css file…

Thanks in advance!

9 years ago

Thank you so much, this helped me a lot and I’ve got an understanding of the drupal system.

Priyank Prajapati
Priyank Prajapati
9 years ago

i have modify the content creating a new content type. that content display in month. But theu arent display content in day.week,year wise so how can i display also in the week,day and year wise ??
please help me

8 years ago

Hi Steve, i need to archive my Blog Post everyday, and when my clients click in any date of the calendar, shows the blog according to the selected day, do you think this example could be what i’m looking for? Thank you.

6 years ago

Hi Steve, Have you ever tried making a calendar that tracks events in a historical context, thus showing events going back dozens of years? I find that the calendar module will only go back as far as 2015, and no further. It looks like nobody is minding the issues cue for this module, so I’m turning to the published experts for help. Thanks.

Would love your thoughts, please comment.x