Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am trying to create a view showing a 'timetable' by day of week containing lessons planned in different places.
These days and hours are fixed for the year
maybe it's not the right way to do that, but I use views to select office hours
but i can't find the node office hours in the sort item of the view interface .. cause I want to group the result by day
so i can show all the lesson taking place on monday etc
have you planned to use this module with some presentation ones like calendar ?
is there a way to do that ?
thanx
Comments
Comment #1
Ozeuss CreditAttribution: Ozeuss commentedViews should be definitely the right way to do that. OOTB, it supports only the 'day' column- meaning you could filter by day=0, for instance (the says are numbered 0 to 6, starting with sunday). Better views support is very much in order here.
I haven't really thought of using it with a calendar. module example?
Comment #2
whysee77 CreditAttribution: whysee77 commentedthanx alot for your answer
Ok i'll gonna try to go with your trick
the exact term for what i'm trying to do is a timetable
is it the same for hours than for days, i mean access by an array ?
so maybe it's better to write php/sql code to group by day and get a duration-colored-band along the hours grid
i'm pretty newbie, so if you have example code for view or module doing such a selection i'll appreciate
tanx a lot
Comment #3
whysee77 CreditAttribution: whysee77 commentedok i'm trying to create a view for my timetable
in filter i choose the officehours content
but with operator 'is equal to' i don't get significant result
any help?
Comment #4
whiklojNot sure if this falls in the same category, but I would love to be able to create a calendar view that displays the hours in the correct days of the week.
So a node with a date and office hours CCK type could have the hours for each day and be able to display the specific hours based on the current or a future day (ie. What are your hours on Saturday?)
Comment #5
johnvResumé: So creating a timetable could be done by one of the following methods:
- exposing office hours to the Calendar module;
- exposing a ´Sort´ to Views;
Comment #6
johnvComment #7
johnvThis is now working using default (out-of-the-box) Views 3 support.
See the README file I just committed.
Comment #8.0
(not verified) CreditAttribution: commentedresume in first line