datedrupaldrupal-nodes

Connecting nodes to multiple dates


I have company website, with many offices around the world (around 50 offices). The company want to create a gift giveaway with the employees in a specific company each specific day.

For example:

Office 1: will do the giveaway the days: 1/1/2010, 7/1/2010, 15/1/2010, etc...
Office 2: the days: 2/1/2010, 9/1/2010, 19/1/2010, etc...
Office 3: ....
Office 50: ...

(the days are setup manually to specific offices, no need of an algorithm here)

I have a node per Office, it's a CCK content type with details of each office (location, phone, email, etc), now I need to assign those days to the offices.

But my problem here is that I don't need to create events (or at least node events) because I don't need to store any data in the event. Just need to say: Office 1? Yes, days 1/1/2010, 7/1/2010, etc...
Nothing else, just to know the dates.

And, if possible, make them available to display in the calendar module.

What is your suggestion?


Solution

  • Ok I've found the solution myself and I want to share it with you:

    Created three content types:

    Office: with data of the office
    Days: with a node per day (365 * year)
    and Giveaway: with two node-reference fields, one for Office and another for Day.

    (Days must be populated manually using a script that fills the upcoming 2 years or so).

    So I can fill only Giveaway content type, and that's enough.

    And then only the views are remaining.