Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Displaying multi-day events in your CMSCalendar View modes: 
User avatar
Member
Member
kra568-vsb - 9/12/2010 5:20:42 AM
   
Displaying multi-day events in your CMSCalendar
Hello Kentico staff,

first, let me thank you for a great and intuitive CMS :) Unfortunatelly i have hit a wall and i think you are the ones who could help me out, or point me somewhere where i can find a solution.

So, i need to alter your calendar so it can display events lasting more than 1 day. The first step was to add respective fields (DayFrom, DayTo) to the Booking Event document type.

Regarding rendering I was able to come up with two hypoteticall solutions:

a) In calendar transformation displaying No Event, i would check if the date of currently rendered day field is between DayFrom and DayTo and if it is, i would render the title and hyperlink to the event. So, is there a way i can get the value of currently rendered day and compare it?

b) Altering SQL Querry. But i dont know how :)

Thank you for any response, be it positive or negative.

Michal Kravčenko

User avatar
Member
Member
kentico_michal - 9/17/2010 7:58:55 AM
   
RE:Displaying multi-day events in your CMSCalendar
Hi,

Multi-day event support is rarely feature, unfortunately it is not supported in (asp.net) EventCalendar directly, but you can achieve it by doing some customization on your own. To take inspiratin how to do it, please see following asp.net forum: http://forums.asp.net/p/959533/2328676.aspx

Another possible solution is try to find, integrate and use different event calendar modul, which has this feature. You can use google.com to find out these modules.

Best regards
Michal Legen