Mono Support Calendar 

32302 put(a) pogledan, 5 odgovor(a), 22.9.2011. 13:07:52 - Kreirao(la) rule128
22.9.2011. 13:07:52
265 Reputacija 29 Ukupno objava

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
22.9.2011. 13:43:56
629 Reputacija 83 Ukupno objava

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
22.9.2011. 15:45:39
265 Reputacija 29 Ukupno objava

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
22.9.2011. 16:26:18
629 Reputacija 83 Ukupno objava

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
23.9.2011. 12:58:57
265 Reputacija 29 Ukupno objava

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
Ovo je MonoX demo site. Posjetite Mono Software za više detalja.