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... ;)

Technorati Tag:

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

# replica jewelry

Requesting Gravatar...
It will change every calendar on every site, it's not a solution.
Left by replica jewelry on Apr 29, 2010 5:04 AM

# re: How to change the Sharepoint Calendar template?

Requesting Gravatar...
orting Sharepoint to a new language that actually doesn't exists).

I really don't have a clear idea on how to so
Left by wholesale laptop battery on May 23, 2010 2:48 PM

# re: How to change the Sharepoint Calendar template?

Requesting Gravatar...
Thanks for sharing..i like it very much..i want to appreciate your work..i would like to say thanks to you.
geet
Left by geet on Jul 13, 2011 11:40 AM

# re: How to change the Sharepoint Calendar template?

Requesting Gravatar...
wat u can do is instead create a new template by copying the calendar data and modifying some of the content ...give it a template name and make your list use this template..
works great have used it
Left by harsh on Jul 20, 2011 6:46 PM

# re: How to change the Sharepoint Calendar template?

Requesting Gravatar...
i apologize please delete/egnore above comment
Left by harsh on Jul 20, 2011 9:20 PM

Your comment:

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