Recipe 80: Date badge
Note
Ingredients:
CCK module: http://drupal.org/project/cck
Date module: http://drupal.org/project/date
Enable Date, Date API, Date Popup, and Date Timezone modules
Node Go To module: http://drupal.org/project/nodegoto
Recipe 34
In this recipe we create little calendars, or "date badges" that display the dates of upcoming events. The badges will display in nodes, teasers, and views.
This recipe begins in a fashion similar to Recipe 34 (Block of Upcoming Workshops), with a couple of key differences:
Our content type will be called event, rather than workshop.
Our view will create a page, but not a block, and it will use the Teaser List view type, so no field selection is required.
With these differences in mind, let's proceed:
Go to
admin/settings/date-time
, and ensure that the default time zone is set.Turn to Recipe 34, and replicate Steps 3-9, remembering to substitute the word event for workshop each time it appears in a URL or setting (for instance, create a Content type named...