Drupal: create a node with employee working hours

Posted by JMarshall on Stack Overflow See other posts from Stack Overflow or by JMarshall
Published on 2010-05-08T13:02:54Z Indexed on 2010/05/08 13:08 UTC
Read the original article Hit count: 169

Filed under:
|
|
|
|

I have a bit complicated task.

1. I need to create a node with employee working hours (it's gonna be created for all users with role "employee"), which looks like this:

    Monday:    From __ : __ To __ : __
    Tuesday:   From __ : __ To __ : __
    Wednesday: From __ : __ To __ : __
    etc.

So, I'll have to create probably 14 CCK fields (monday_from, monday_to, tuesday_from...) or more to store the day of the week and workging hours (hours and minutes).

2. I need to add a view with exposed filters, where visitors can filter employees by day of the week and working hours.

What kind of field should I use for working hours? How could views filtering described above be achieved?

Any suggestions are greatly appreciated.

Thank you!

© Stack Overflow or respective owner

Related posts about drupal

Related posts about views