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

Ozeuss’s picture

Views 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?

whysee77’s picture

thanx 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

whysee77’s picture

ok 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?

whikloj’s picture

Not 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?)

johnv’s picture

Title: weekly lessons schedule Office_hours field not exposed for sorting in view » Views/Calendar support for creating a timetable (sorted by day)
Category: support » feature

Resumé: 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;

johnv’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
johnv’s picture

Status: Active » Fixed

This is now working using default (out-of-the-box) Views 3 support.

See the README file I just committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

resume in first line