I find that repeating events is one of the strong points of the Palm OS calendar app. It's been a LONG time since I did Palm development, but the original Date Book app used to have its source code available as example code. Perhaps that's something we'd want to look at for inspiration. On Sunday 05 March 2006 07:27, Grant Malcolm wrote:
*first post*
Sadly, the IRC timing's really lousy for folks in australia.
;-)
So will I be excused if I stick in an email plug for catering for non-contiguous multi-day events?
This is a particular requirement for some types of events; e.g. performances: essentially the same event repeated over several weeks but not necessarily on every day.
http://home.it.net.au/~gmalcolm/?q=node/18872
I added an extra table event_days
mysql> describe event_days; +-------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------+------+-----+---------+-------+
| nid | int(10) | YES | | NULL | | | date | int(10) | YES | | NULL | |
+-------+---------+------+-----+---------+-------+
where there is a row for every date that nid (the event) occurs. Timezone isn't an issue with this example but you could probably just use event.tz offset if it were. It's not visible without a login, but I ended up opting for an utterly inaccessible js tool (http://www.calendarxp.net/tt_flat.shtml) for inputting dates rather than the couple of months' worth of check boxes I used to display.
It's a hack and I'm yet to clean up day, week, month views to use occurences of date rather than start and end.
If I was clever, and I'm not, I'd have modified the module to add a flag you can set (for each event?) to define whether it's repeating, multiday, non-contiguous.... anyway, I hope it gives someone some ideas.
Cheers Grant
-- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson