Drupal: create a node with employee working hours

陌路散爱 提交于 2019-12-11 00:17:17

问题


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!


回答1:


Why don't you take a look at the Office hours module. I don't know if you can use exposed filters on it, but it should get you most of the way.



来源:https://stackoverflow.com/questions/2794149/drupal-create-a-node-with-employee-working-hours

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!