4

I've created a content type that represents a past events. I've added an extra date-field to this content type that indicates the date of the event. I'm trying to create a calendar that groups events by day and month, but ignores the year in which the event happens.

e.g. when going to site.com/calendar/[month]/[day], I'd like to get a list of all events that happened on the given day of the given day, irrespective of the year in which they happened.

This seems impossible with the default tools, as they always expect a year to filter on. How can I customize these filters?

2 Answers 2

2

You will find the Date module useful for this. Date contains a number of sub-modules, including Date Views. Enable the Date Views module (and its required modules) and you will have what you need in Views.

Here's a link to the module:

http://drupal.org/project/date

0

Take a look at the Archive view, which is provided with Views by default. Change the contextual filter from Content: Created year and month to just Content: Created month (with Content: Created day if necessary). If you have trouble, look at the settings the Archive view provides by default.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.