Office hours field could be very useful to create schedule tables for office workers using Views, in table display mode, when days are in the head of the table and work hours are in cells. For now, to do that, one can only add Office hours field to the view multiple times (5, for Monday-Friday) and in the multiple field settings check to show only 1 value for each day.
But then there is an issue one can only fix by altering the view in a module: when there are "closed" days (days with no office hours), values will shift to the left. I mean, if I set up office hours like 10-14 for Monday and 8-12 for Friday, leaving all other days closed, and then I set up a view in a fashion described above, I would see 8-12 in Tuesday column. This is correct behavior because there are really only 2 existent values for the field, but it doesn't help to create a schedule table.
So, it would be great to have a field handler which allows to query a certain day and renders office hours (or "closed" string) just for this day.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | schedule.txt | 81.68 KB | graker |
Comments
Comment #1
johnvCan you generate a Views export of your view? (in an attachment)
Comment #2
graker commentedYep, sure
I attached it. Some strings are in Russian though. There are 4 displays in there, but only 2 of them are for the schedule: Schedule Dist and Schedule Specs.
Comment #3
johnvLatest -dev version contains Views 3 support. I think this should be able to resolve your problem.
See also the updated README file , which contains Views support documentation.
Please run update.php after upgrade!
Comment #5
johnvI guess issue #3374111: Each day in individual Views Table Column solves the request in D8 version.