Specify the type of calendar in Sharepoint
- Hi
i want to add my custom calender (Persian Calender) to my sharepoint, then configure it with my calender type, at this time, when i go
in User > My Setting > Regional Setting and choose Calender Type, Persian Calender does not exist in the list and i want to develop and add to calender types myself, but how to do ?
thanks
this is my Signature
All Replies
Hi Hamed_1983,
check this link:
http://csharptuning.blogspot.com/2008/09/persian-calendar-for-sharepoint-2007.htmland also this treads that seems to be talking about the same issue's:
http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/10592442-023a-4c15-b0a9-834a06959705/
http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/b5d22a6d-3940-41ab-a69b-643e131c24b5/
Cheers,
Daniel Bugday™ Web: © SharePoint Forum Blog: Daniel Bugday's Blog- Hi Daniel Bugday
but in those link, does not have any download or explaination about this work, it is only definition, also this site repeat what he has been said.
also these links :
http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/10592442-023a-4c15-b0a9-834a06959705/
http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/b5d22a6d-3940-41ab-a69b-643e131c24b5/
i need more help about this problem.
thanks
this is my Signature If i understand you correctly..
You need to implement a Persian Calendar type (that does not exist in SharePoint OOTB) and you want to develop one?
As i read trough that links, my understanding is that the blogger of this site http://www.tabatabaei.info/ created a persian calendar..
Why don't you drop him an email or a comment on his blog about the project..
Daniel Bugday™ Web: © SharePoint Forum Blog: Daniel Bugday's Blog- Why don't you drop him an email or a comment on his blog about the project..
because he want to sale (expensively), i want to develop iy myself.
Anyway, i search about this feature in my sharepoint configuration path (C:\ProgramFiles\Common Files\Microsoft Shared\web server extensions\*) very much. i found some xml files and aspx files in that.
C:\ProgramFiles\Common Files\Microsoft Shared\web server extensions\12\CONFIG :
Regional Setting : RGNLDFLT.XML
Time Zone : TIMEZONE.XML
C:\ProgramFiles\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS :
regionalsetng.aspx
C:\ProgramFiles\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\Publishing :
RegionalSettingsExtensions.xml
i tried to open RGNLDFLT.XML file in visual studio, it have a definition like this :1 <?xml version="1.0" encoding="utf-8"?> 2 <RegionalSettings> 3 <LangIDDefaults> 4 <liddefault lid="1078" caltype="1" tzid="50" time24="0" currencylid="7177" isrtl="0" iseastasia="0"/> 5 </LangIDDefaults> 6 </RegionalSettings>
as you can see, each liddefault tag has a lid,caltype,tzid,... . the tzid is TimeZone and locate in TIMEZONE.XML, but i don't know where does caltype, i searched for it many times, but i can't find anything.
also i tries to open regionalsetng.aspx that display a webpage for regional setting in sharepoint, in the source i found this tag :1 <Template_InputFormControls> 2 <wssuc:InputFormControl LabelText="<%$Resources:wss,regionalsetng_calender_label%>" LabelAssociatedControlID="DdlwebCalType" runat="server"> 3 <Template_Control> 4 <asp:DropDownList ID="DdlwebCalTypeWithROC" OnSelectedIndexChanged="DdlwebCalTypeWithROCIndex_Changed" AutoPostBack="true" Runat="server"> 5 <asp:ListItem Selected Value="1" text="<%$Resources:wss,regionalsetng_CAL_GREGORIAN_STR%>" /> 6 <asp:ListItem Value="3" text="<%$Resources:wss,regionalsetng_CAL_JAPAN_STR%>"/> 7 <asp:ListItem Value="4" text="<%$Resources:wss,regionalsetng_CAL_TAIWAN_STR%>"/> 8 <asp:ListItem Value="5" text="<%$Resources:wss,regionalsetng_CAL_KOREA_STR%>"/> 9 <asp:ListItem Value="6" text="<%$Resources:wss,regionalsetng_CAL_HIJRI_STR%>" /> 10 <asp:ListItem Value="7" text="<%$Resources:wss,regionalsetng_CAL_THAI_STR%>" /> 11 <asp:ListItem Value="8" text="<%$Resources:wss,regionalsetng_CAL_HEBREW_STR%>" /> 12 <asp:ListItem Value="9" text="<%$Resources:wss,regionalsetng_CAL_GREGORIAN_ME_FRENCH_STR%>"/> 13 <asp:ListItem Value="10" text="<%$Resources:wss,regionalsetng_CAL_GREGORIAN_ARABIC_STR%>" /> 14 <asp:ListItem Value="11" text="<%$Resources:wss,regionalsetng_CAL_GREGORIAN_XLIT_ENGLISH_STR%>" /> 15 <asp:ListItem Value="12" text="<%$Resources:wss,regionalsetng_CAL_GREGORIAN_XLIT_FRENCH_STR%>" /> 16 <asp:ListItem Value="16" text="<%$Resources:wss,regionalsetng_CAL_SAKA_STR%>" /> 17 </asp:DropDownList> 18 <asp:DropDownList ID="DdlwebCalType" OnSelectedIndexChanged="DdlwebCalTypeIndex_Changed" AutoPostBack="true" Runat="server" Visible="false"> 19 <asp:ListItem Selected Value="1" text="<%$Resources:wss,regionalsetng_CAL_GREGORIAN_STR%>" /> 20 <asp:ListItem Value="3" text="<%$Resources:wss,regionalsetng_CAL_JAPAN_STR%>"/> 21 <asp:ListItem Value="5" text="<%$Resources:wss,regionalsetng_CAL_KOREA_STR%>"/> 22 <asp:ListItem Value="6" text="<%$Resources:wss,regionalsetng_CAL_HIJRI_STR%>" /> 23 <asp:ListItem Value="7" text="<%$Resources:wss,regionalsetng_CAL_THAI_STR%>" /> 24 <asp:ListItem Value="8" text="<%$Resources:wss,regionalsetng_CAL_HEBREW_STR%>" /> 25 <asp:ListItem Value="9" text="<%$Resources:wss,regionalsetng_CAL_GREGORIAN_ME_FRENCH_STR%>"/> 26 <asp:ListItem Value="10" text="<%$Resources:wss,regionalsetng_CAL_GREGORIAN_ARABIC_STR%>" /> 27 <asp:ListItem Value="11" text="<%$Resources:wss,regionalsetng_CAL_GREGORIAN_XLIT_ENGLISH_STR%>" /> 28 <asp:ListItem Value="12" text="<%$Resources:wss,regionalsetng_CAL_GREGORIAN_XLIT_FRENCH_STR%>" /> 29 <asp:ListItem Value="16" text="<%$Resources:wss,regionalsetng_CAL_SAKA_STR%>" /> 30 </asp:DropDownList> 31 </Template_Control> 32 </wssuc:InputFormControl> 33 <wssuc:InputFormControl runat="server"> 34 <Template_Control> 35 <asp:CheckBox ID="ChkShowWeekNumber" Text="<%$Resources:wss,regionalsetng_showweeknumber_label%>" runat="server" /> 36 </Template_Control> 37 </wssuc:InputFormControl> 38 <asp:PlaceHolder ID="PanelAdvanceHijri" Runat="server"> 39 <wssuc:InputFormControl LabelText="<%$Resources:wss,regionalsetng_hijri_label%>" LabelAssociatedControlID="DdlwebHijriDays" runat="server"> 40 <Template_Control> 41 <asp:DropDownList ID="DdlwebHijriDays" Runat="server"> 42 <asp:ListItem Value="-2">-2</asp:ListItem> 43 <asp:ListItem Value="-1">-1</asp:ListItem> 44 <asp:ListItem Selected Value="0">0</asp:ListItem> 45 <asp:ListItem Value="1">+1</asp:ListItem> 46 <asp:ListItem Value="2">+2</asp:ListItem> 47 </asp:DropDownList> 48 </Template_Control> 49 </wssuc:InputFormControl> 50 </asp:PlaceHolder> 51 </Template_InputFormControls>
i think it bind to a dataSource to retrieve Calender Type from it (probabely Resources), i tried to find Resources, but i could'nt find it.
do you think that i must to add my Persian Calender to it's dataSource ? if so, how to do ?
any help would be appreciated.
this is my Signature Don't know if this post should now be moved to the dev. or programming forum (as the developers are in there).
-The Caltype attribute specifies the calendar type (there is non for persian).
Field Element (List - Definition):
http://msdn.microsoft.com/en-us/library/ms437580.aspx
When you say also i tries to open regionalsetng.aspx that display a webpage for regional setting in sharepoint, in the source i found this tag
-which tag are you talking about?
Resources is a special folder located in C:\ProgramFiles\Common Files\Microsoft Shared\web server extensions\12 ("hive 12"), and is used for localization.
do you think that i must to add my Persian Calender to it's dataSource ?
-Not sure what you mean here..
Hope this helps,
Daniel Bugday™ Web: © SharePoint Forum Blog: Daniel Bugday's Blog- Edited byDaniel Bugday Sunday, October 05, 2008 6:41 PM
- -Not sure what you mean here..
i think i must add my calender type to wss.resx and modify regionalsetng.aspx to load it from wss.xml resource (it placed in C:\ProgramFiles\Common Files\Microsoft Shared\web server extensions\12\CONFIG)
but when i do this, Regional Setting Page direct to Error page, when i undo my changes, it works.
the another problem is that how to access behind code file for regionalsetng.aspx (probabely regionalsetng.aspx.cs) ?
(i must read DdlwebCalTypeWithROCIndex_Changed and DdlwebCalTypeIndex_Changed event handlers for review codes, maybe i can find which class or assembly hold information about calender type in sharepoint), what about you ?
this is my Signature

