|
|
 Rank: Devotee
Joined: 7/20/2006 Posts: 75 Location: Italy
|
I know that someone has experiented with an calendar in umbraco. But here are my thoughts.
I want to create a event calendar. In my case I do not need a start and end date though it might be an option.
It would be nice if an event would be created in a date folder like in the blog package in the date that the event starts. If I understand it correctly the blog package impliments an action handler that takes in the date that the blog is created and puts it into the correct date folder. In my case the date would be selected after creation of an item. or is it possible to add date option when a item is created?
I'm not sure if I'm expressing myself weel enough. but Basically I want to achive a similar structure as the blog package.
How would you guys and girls impliment this?
Gísli
"We come from the land of the ice and snow, From the midnight sun where the hot springs blow"
|
|
Rank: Aficionado
Joined: 7/19/2006 Posts: 165 Location: aalleren, Denmark
|
You could make an action handler that checks the specific document type for a attribute on publish/save - if date is selected then move node to new blog-like folder if not, do nothing. Umbracian Personal blog: Objects.dk
|
|
 Rank: Addict
Joined: 7/29/2006 Posts: 507 Location: Melbourne, Australia
|
I will be building an events calendar shortly too. Perhaps we should pool our resources?
I was thinking of doing it in .Net though. It'd just be an sql table of events, each with a date (start and end date), then when retrieving all events, i'll just sort by date. sounds easy right? heheh wait till i start coding. :|
Wishes he could work with Umbraco all the time.
|
|
 Rank: Devotee
Joined: 7/20/2006 Posts: 75 Location: Italy
|
Ok, here are my thoughts so far.
Implement it in umbraco using datatypes. This way it could be more extendable and more easy for people to add there own properties. I would need a startdate, enddate is trivial. and a contenpicker to point to a news article or a blog entry. Do the same structure as in the blog package. that is have date folders but in this case handle the save event and put the entries into a date folder for the date of the event and not the create date.
fetching the x number of items from the date today is very easy in xslt. I have not thought of any calendar gui things in the first step.
"We come from the land of the ice and snow, From the midnight sun where the hot springs blow"
|
|
 Rank: Addict
Joined: 7/29/2006 Posts: 507 Location: Melbourne, Australia
|
I'm implementing it quite differently.. because my calendar will be fully integrated with the rest of my content, with cross references everywhere, i'll be building it in .Net, but each event will have a node in umbraco, which will act as a 'pointer' to the event in my DB using pageID as a foreign key.
Wishes he could work with Umbraco all the time.
|
|
Rank: Devotee
Joined: 7/24/2006 Posts: 249
|
Ismail created one here: http://ismail.umbraco.net/2006/7/14/events-calendar.aspxI use it and it works very well.
|
|
Rank: Devotee
Joined: 7/24/2006 Posts: 249
|
Just stopped working for me, now I get: Cannot perform '>=' operation on System.String and System.DateTime. anyone have any ideas? it was working fine, I upgraded to version 2.16 and thought that may have been the problem but I restored back to 2.14 and still have this problem.
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 649 Location: Preston, UK
|
Martin,
Are you sure all your events have start and end dates? You may have created one with out one or both dates.
Regards
Ismail
Level 2 certified. If it aint broke dont fix.
|
|
Rank: Devotee
Joined: 7/24/2006 Posts: 249
|
Ismail Mayat wrote: Martin,
Are you sure all your events have start and end dates? You may have created one with out one or both dates.
Regards
Ismail
oops! your absolutely right, It's been a while since I used it and forgot about that. sorry..
|
|
|
Guest |