Portal Engine
Version 3.x > Portal Engine > Color Coding Events by Category View modes: 
User avatar
Certified Developer 12
Certified Developer 12
preid@sherwood-group.com - 3/12/2013 1:57:21 PM
   
Color Coding Events by Category
We're using the event calendar web part on one of our pages. The various events have been assigned to categories within their own properties, and we would like to be able to set the background colors for each event on the calendar based on these categories.

I know that we can control some of the calendar styling through the calendar theme, but how would we go about having the calendar recognize the categories and assign classes/colors accordingly?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/12/2013 3:52:47 PM
   
RE:Color Coding Events by Category
Hi,


I think that the best solution is to create a custom function for a transformation . This function will get the current document categories and in some decision statement you will set the rules what background or style should be used for given item.

Best regards,
Juraj Ondrus