On a SharePoint calendar you might have different event types, e.g. Birthday, Meeting or Holiday. Wouldn’t it be nice if you can display these events on the calendar and colour code them by event type?
Well you probably can achieve this by applying the right XSL to the calendar list – but this could get nasty. Alternatively you can use a no-code solution involving calendar overlays in SharePoint 2010.
You would end up with something like this:
The steps to achieve this include:
- Filter the default calendar view to show only items of event type Meeting (for example)
- Create another calendar view, and filter to show only items of event type Holiday
- Create another calendar view, and filter to show only items of event type Birthday
- Add the Holiday and Birthday views to the default view as overlays
This approach has some drawbacks, but it is simple enough that it could be a satisfactory workaround.
As a side note, check this post for adding calendar overlays programmatically in SharePoint 2010: http://blog.falchionconsulting.com/index.php/2011/06/programmatically-setting-sharepoint-2010-calendar-overlays
Hi, thanks a lot for you post. Even though it dates back to SP 2010, it helped me a lot setting up different color codes for events. I had initially created different calendars, but your solution is much more elegant and more usable as well.