Active
Project:
Station
Version:
6.x-2.0-beta5
Component:
Schedule
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 May 2011 at 21:13 UTC
Updated:
16 Dec 2011 at 12:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
frederickjhNot unless you some how write a patch. The current schedule is setup for a schedule that is the same every week and repeats.
Sorry to be the barer of bad news.
Comment #2
ahillio commentedWould writing a patch that does this be a good way for me to learn php and module coding? I've painstakingly hacked a little php but am potentially interested in legitimately learning it... would it make sense for me to try patching this considering I'd be learningbydoing? Thanks!
Comment #3
keremito commentedHi there,
I think it's a good point to start learningbydoing.
I've used a trick to show two-week schedules. It may be your answer too.
First, I've created two schedules; "first week" and "second week" and then, I create views
specific to my purpose (a screenshot is attached). I use handling code below as the argument;
This argument is for monday. It will check the number of the week; if it is odd, it will get the program nids from "first week" schedule (schedule_nid=3, in my case) as the arguments. If not, schedule_nid will be 10. Please note I've checked "Allow multiple terms per argument." In my schedule, Monday is between 1800 and 3000th minutes of the week but be careful; it depends on the start and end hours of your schedule.
Now I'm planning to develop a specific module; after you enter first week schedule, you will press a button which creates clone of the schedule (clone the row of the database for the second week). Then minor changes will easily be applied. Would you like to work together?
Comment #4
chris_riddell commentedkeremito,
Is something you are still interested in working on? I'm working with a radio station that has the same need. Your multiple schedule solution seems like a good start, especially for displaying the schedule. Not sure if that can be used to do the same thing with the archive.
Anyway, I was approaching this as a patch to the schedule module, adding some fields to the form to indicate whether a show has a different frequency than weekly. But, having seen lots of chatter about overhauling the Station module in general, I wonder if your lower-impact approach is better.
Chris
Comment #5
keremito commentedHi Chris,
Firstly, I even didnt think anything about the archive. All my aim was to display the schedule for two weeks. Yes, I'm still interested, especially if we go through such a side-way.
Update: Hey, we dont need a module for such a reason! Next week, I'll add a list selection field to the program node; by default, it will be 'all weeks' and you can change it to 'odd weeks' or 'even weeks', then add that field to the database query too. You gave me the light Chris!