Hello,

Is there any tutorial or how-to for the calendar module http://drupal.org/project/calendar ?

I have installed it, but it's dificult to learn how to make it work right; right now it list all the post dates of the site.

Best Regards.

Comments

nedjo’s picture

To understand what it does, create a new view based on the default calendar one and then tweak it. In particular, you can change the 'filters'. E.g., if you want to show events and have the date module installed, you could create an 'event' content type, give it a date field, and then set a node type filter to show only nodes of that type in your calendar view.

Pear Head’s picture

I believe I've done exactly what you've suggested:

I created a content type of 'event', and with the date module installed I've added a field to it of 'Date'.

I have the calendar displaying in the menu bar. When I create an event, and set the date field, the correct date appears underlined in the small calendar in the menu bar and I can then click on the underlined date. When I click on that date to bring that date up in the main body, the date is comes up with no events in it. Instead, all of my events are displayed in the 'main' calendar using the date that they were created, not using the date field.

How do I make the events show up in the calendar, using the calendar's url, using the date field and not the date the event was created on?

nedjo’s picture

for the view you created. Or disable the default calendar view. The issue is that they both have the same url (path).

Pear Head’s picture

I changed the url of the calendar I created and it works much better now - thanks.

I get a warning though when I display the individual date on the calendar:

warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/html/includes/bootstrap.inc on line 588.

I am guessing that's a bug?

nedjo’s picture

please look for an existing issue or open a new one.

joachim’s picture

I've done as above, and changed the URL.
I'm having the same problem as the poster. I don't see how to create a calendar that shows nodes according to a custom date field. It seems extremely complicated, and nothing I try works.

I've made a custom content type with CCK called Event, and added a Date field to it.
By copying the original calendar view, I can make calendar showing only Events, but they are placed in the calendar according to creation date.

For my next step, I've tried changing both the Fields and the Sort Criteria options so they have the custom date field instead of the creation date field. The result is a blank calendar that shows no node at all.

joachim’s picture

Ok, typically, I spend all day trying to figure this out, then five minutes after I've posted, I've got it working. :(

To return to the original question, is there a tutorial on getting this working? It was really hard figuring it out.

irongoddess’s picture

Have you figured this out yet?

I was having the same problem -- I set up a custom calendar and it didn't show all the content updates like the default, but it didn't show the Events content type either.

I went to Filters for my custom Calendar view and added a filter for "Node: Type."

Then I went to Fields and added the Date field from my Event content type, and in its drop-down box I changed "Group multiple values" to "Do not group multiple values."

See if that helps and post again if it's still giving you grief.

ceo3141’s picture

I am a complete newbie to Drupal -- I am using v. 5.0. How do I get the calendar up and running? I have installed and enabled the module. How do I see it on a page?
Thanks!

walterbyrd’s picture

I had the calendar module working in my 5.0 installation. Then it just stopped working. I don't why, but I can not seem to get it back. I have been having a lot of trouble with several modules in 5.x.

ceo3141’s picture

I am a complete newbie to Drupal -- I am using v. 5.0. How do I get the calendar up and running? I have installed and enabled the module. How do I see it on a page?
Thanks!

irongoddess’s picture

I am also relatively new to Drupal, and I just got this module configured today.

The basic information for implementing the Calendar view is here:

http://drupal.org/node/120710

To see the default calendar once it's installed, just add /calendar after www.yoursite.com and you will see it displayed.

To create a calendar that shows a certain subset of information (e.g. you have a content type called "Events" that you want to show, without showing every single page update ever made), you need to go to your Admin section, go to Site Building -> Views, and then choose the tab that says "Add."

Under "Page," make sure the "Provide Page View" check box IS checked, and then in the "View Type" drop-down box, choose "Calendar."

From there, you just have to go through each section. See the first reply to this thread for details about showing a particular content type on the calendar.

lunatinker’s picture

this thread, all said, is 10X more informative than the
thanks to all the nice folks here who took time to explain some things!

basic instructions on the modules resource page:
your link to "instructions" http://drupal.org/node/120710
This basic information page assumes a lot of things.
It assumes that you understand the concept used to create the module
and it assumes that you understand the strategy used to implement
without the author spelling out arbitrary instructions at all.

sepeck’s picture

Someone should submit a handbook page or an issue WITH the better instructions.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

swimswimswim’s picture

I too am having difficulty setting up the Calendar module. A better detailed how-to or tutorial would be greatly appreciated. I agree that instructions at http://drupal.org/node/120710 ... assumes a lot of things.

As suggested I go to www.example.com/admin/build/views/add, but the when I look in the "fields" section, the "Add Field" drop down menu does not have any date options. I see "Node: Created Time" and "Node: Updated Time" but again there is no date option.

elasater’s picture

I've read through the instructions several times and this thread multiple times and must be missing something...

How do you get the events on the calendar to display on the event date, not the creation date?

I've created my custom content type with a date field and set up the filters in the Views for the calendar, but am not able to get it working properly yet. :(

joachim’s picture

I had similar problems and tore my hair out for a few weeks.
Now I've managed to set up several calendars very easily, and I'm not entirely sure what changed... so the following may be of no help at all!

Part of the problems I had may have been bugs in the interaction between CCK date fields and the calendar. There is at least one bug (which I've filed) involving date fields with an optional 'To date'.

The easiest way to do it is to start with the predefined calendar view; click 'Add' next to that in the list.
- remove the existing 'Node: Updated Time' field
- add your own date field. IIRC, just leave all options for that as default
- remove the 'Node: Updated Time' sort, and just leave it without sort options (at least that's what I do)

Hope that helps!

elasater’s picture

After posting last night, I dinked around with it more and did actually get it working. I was going to write something up and post it for future reference, but you beat me to it! :)
Thank you for answering.

Nikkol’s picture

I've noticed that the Day view (i.e. example.com/calendar/year/month/day) does not display any of the nodes that fit the filter, but they display in the week and month view. Is this a bug or am I missing something?

ceo3141’s picture

You are right -- I see that also. I had an email exchange with Karen S, the author, and updated all of my modules. I am using Events, however, because it allows for the creation of Repeating Events, which are important to my site. Do you have your nodes as CCK nodes? If you file an issue at the Calendar module support, Karen S is very responsive.

toxy’s picture

I have the same issue going on.
When you attempt to view a list of event's on a certain day, it display's nothing.
How do we fix this?

navykat’s picture

I am having the same problem. I'm using the calendar block as a way for readers to access old posts in my blog. Clicking on week or month works fine, but clicking on the day gives a page with the date and nothing else. Which is disconcerting because most people click on the day. I don't understand why day would work differently than week or month.

Folkert’s picture

Hello all, just wanted to let you know that i had troubles displaying Date (cck) fields in the mini and normal calendars. After i changed the depths of the 'duration' Date field to a positive Number all dates are shown. So maybe it helps somebody.

ipwa’s picture

This tutorial really helped me get started with the calendar module: http://drupal.org/node/133341

Does anyone know any tips for styling the calendar view with CSS?

Nicolas
-------------------------

maartendbr’s picture

greetings,

Using the calendar view that came with the Calendar module, I was receiving a calendar with no (event) node displayed

Removing the "updated time" field did the trick, I wonder why it is put in the example of the calendar view.

Tnx for the tip !

visionmark’s picture

Another tutorial would be great.

I do not understand this at all. I have a calendar view but when I click on a date it just takes me to the same page and doesn't go anywhere. If I click on May 7th, for example, the link reads: http://mysite.com/calendar/2008/05/2/2008/05/7/2008/05/7

This is obviously wrong but I have no idea whats causing or which of the 50 modules to go to and change settings and which settings to change???

This is just the beginning...