Views handler to query a certain day

Created on 17 July 2012, over 12 years ago
Updated 31 May 2024, 7 months ago

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.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇷🇺Russia graker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024