How to change the Sharepoint Calendar template?

Today a friend asked me an interesting question via GTalk: how to customize or replace the Sharepoint Calendar view in order to use a new calendar for a different culture? (he was involved on porting Sharepoint to a new language that actually doesn't exists).

I really don't have a clear idea on how to solve this task, so... why not using the power of blogs in order to help him?

The idea I've given him is to check how Sharepoint manages the Calendar control template.

On the Sharepoint server there's the folder c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Templates\Control Templates and under this folder there's a file called DefaultTemplates.ascx. This file contains the default templates for rendering the Sharepoint controls.

If you check for 'Calendar' inside the script, you'll fin lots of section like this (replace XXX with the correct name):

<SharePoint:RenderingTemplate ID="CalendarViewXXXTemplate" runat="server">

<Template>

.....

</Template>

</SharePoint:RenderingTemplate>

My idea in order to solve this task is to change the <Template> block with a new template for the calendar.

Is it correct? If someone has a better idea, we're curious to listen for it...

Print | posted on Thursday, January 03, 2008 11:20 PM

Comments on this post

# re: How to change the Sharepoint Calendar template?

Requesting Gravatar...
hi,
thanks.
it works but what about calendar navigator on top left side that use SPCalendarNavigator control?
sorry for bad english.
Left by amir on Jun 27, 2008 5:43 PM

# re: How to change the Sharepoint Calendar template?

Requesting Gravatar...
It will change every calendar on every site, it's not a solution.

Still searching....
Left by Hitender on Aug 29, 2008 1:18 PM

Your comment:

 (will show your gravatar)
 
Please add 8 and 7 and type the answer here: