CCK - Hours

mdupont - June 23, 2009 - 13:23

Hi,

I'm building up a planning of courses, using Views and CCK in Drupal 6. In a planning item, I'd like to have a field to indicate course hours (example : "8:00-12:30", or "9:00-12:00, 13:30-17:00").

As some courses are taking place the whole day, some others only in the morning or the afternoon, and some other online late in the evening, I can't just use a CCK text field with a list of allowed values. I tried Date.module, but it requires a full date (YYYY-MM-DD), which is not what I need. Duration.module is, well, meant for durations, so If I leave some fields empty, it will display "0 seconds". The CCK-Time module would fit exactly, but is not available for D6.

Do you have a solution? For the moment I'm using a simple CCK text field with a default value showing the time format, but it won't prevent inconsistencies.

Thanks !

Did you figure this one out?

gafir777 - October 22, 2009 - 14:15

Did you figure this one out? I am looking for the exact same thing.

Thanks,

Nope

mdupont - October 23, 2009 - 10:39

I've not found any stable module able to do this, so I've continued to use text fields. As it is a rather small website with only one person in charge of the planning, it works. Maybe you can try http://drupal.org/project/office_hours (not tested)

 
 

Drupal is a registered trademark of Dries Buytaert.