Archive for January 7th, 2009
Flexifields and Dates and Times
I need a way to post content with multiple optional dates. The content-type will be used for event information – if you can imagine content that answerst he question “what’s going on?”, then you get the idea. But I also need this content to be searchable and presentable by dates, times, etc. Someone should be able to ask: “what’s going on this coming week after 5pm?” “What’s happening on Tuesdays and Thursdays for the next few months between noon and 3pm?” That sort of thing.
So, using CCK, I want to create a content type that allows someone to specify that an event takes place once, on this day at this particular start time and end time. And I want to use the same content-type to accommodate an event which takes place on three separate days, with no regularity, each with its own specific operational hours…
The CCK Date allows me to specify from and to dates (with the annoying display format: <label> From Date etc.), and if I want, I can make them “unlimited,” allowing someone to “add more” dates. This seems like the right idea for both the above cases. But what of an event that spans a period of time (say, Jan 9th to Feb 10th) but which has day-specific operational hours? We sure don’t want 30 date entries. We want an intelligent way to specify days and times on a weekly basis, and then overlay that with the date period.
Doesn’t look like there’s anything like that going on….
:s
Add comment January 7, 2009