On Aug 2, 2009, at 6:21 AM, Klaus Berkling wrote: On Jul 21, 2009, at 5:23 PM, Amedeo Mantica wrote: Now I need to create an html page for displaying the events in a beautiful calendar like look.
Do you (and all readers) know if there is already a Wonder Element that do this??
If not, I'll start today creating my one, and I'll share it with community
I don't remember where I got this from but maybe this can help get you started. It's old and I haven't looked at it in a long time.
There's also the ERXMonthView ( http://wiki.objectstyle.org/confluence/display/WO/ERXMonthView ). That is basically your typical list component page, but it is built on top of the ERXDateGrouper, a WODisplayGroup designed to group your EOs by date. You can look at the source for ERXMonthView and figure out the ERXDateGrouper well enough to create a more 'beautiful' calendar pretty easily.
I liked the ERXDateGrouper a lot, so I extended it with R2DDateRangeGrouper. That subclass uses date ranges instead of simple dates... R2DDateRange is like an NSRange, but uses Date/long values instead of ints. This is useful if, for instance, you have calendar events that span multiple days/weeks.
It basically works the same, but instead of setting a date key, you give it a start date key, and an end date/duration key. If you only give it a date key, then it should work like the super class... Anyway, the date ranges and date range grouper are standalone if I recall correctly. As long as you have ERExtensions present, you should be able to steal them for your own purposes.
Ramsey
|