Mono Support Calendar 

Viewed 30463 time(s), 5 post(s), 9/22/2011 1:07:52 PM - by rule128
9/22/2011 1:07:52 PM
265 Reputation 29 Total posts

Hello

Each registered user has a calendar assigned to him.

How can I assign a calendar to a group?
I would like to have the calendar of the users in the group updated when the group calendar is changed.
If a user is part of more then one group his calendar should contain all the entries in the group calendars.

How can I do that?

Regards

1
9/22/2011 1:43:56 PM
629 Reputation 83 Total posts

Hi,

This is not possible out of box. Event module is designed to display list of events not as a calendar manager. The easiest and cleanest way to achieve what you want is to write WebPart you need. It's possible to utilize MonoX infrastructure (calendars, calendar events and editor) when building such a part and if you're willing to develop it, I'll gladly help you.

2
9/22/2011 3:45:39 PM
265 Reputation 29 Total posts

Hello

My first question still stands: How can I assign a calendar to a group? And then how do I know that this is a group calendar ?

So to sink the calendars I have to replicate the CalendarEventEntity's from the group calendar to the user calendar.
What is the name of the event triggered when an event is added/deleted from a calendar?



Regards

3
9/22/2011 4:26:18 PM
629 Reputation 83 Total posts

Hi,

You can add new table that will connect group with calendar, but you will need to write code where you will assign calendar to group. Querying this table you can know if calendar is group calendar.

You will need to extend event module to customize adding and deleting. You can find more details how to extend event module in this post. But I think syncing calendars is not good idea as it is very hard to maintain everything in sync. Better approach would be to merge calendars when showing them to user, you don't have to take care of calendar sync you just need to read which groups user is member of, read theirs calendars, merge all events and display them to user.

4
9/23/2011 12:58:57 PM
265 Reputation 29 Total posts

Hello Pajo

Your solution sound better. I will go with this one.
If I will get stuck I will get back with questions.

Regards

5
This is a demo site for MonoX. Please visit Mono Software for more info.