ajpion

I would like to alter the view of the monthly calendar to display the start and end time of an event. The default view is displaying the start time and the event title.

Example:

3:00PM

Meeting

I would like the view to show:

3:00PM-4:00PM

Meeting



Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

donboss

Sorry, I don't have an answer. I have a similar question. For recurring events, the End Time of the Calendar View shows the maximum year, 2099, date and time. How do I set the End Time to show only the time of day the event ends Thanks.





Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

rick postmus

To customize the view you can use SharePoint Designer and change the webpart to a XSLT view. Doing this you can modify the view the way you want. You can choose wich valuables you want to show and where you want to show them. Im sure its possible to do what you guys need.

You can change the webpart to xslt by selecting it in sharepoint designer right click -> convert to XSLT view or something simular.




Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

LewisBenge

Hi,

What you need to do (which will overide all calendars rather than that particular one) is open up the Calendar Control template. This is within the folder c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Templates\Control Templates.

Open up the file DefaultTemplates.ascx file

At around Line 2477 you will see the following section:

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

....

</SharePoint:RenderingTemplate>

This is the default template for rendering the calendar items on the monthly view. You can add/edit what ever you like here, but to add the end time you need to replace the template with the following code..

<Template>
<table border=0 cellspacing=0 cellpadding=0 dir="<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container,"DataItem.Direction",""))%>">
<tr>
<td class="ms-cal-monthitem">
<a onfocus="OnLink(this)"
href="<%# SPHttpUtility.HtmlUrlAttributeEncode(DataBinder.Eval(Container,"DataItem.DisplayFormUrl",""))%> ID=<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container,"DataItem.ItemID",""))%>"
ONCLICK="GoToLink(this);return false;" target="_self"
tabindex=<%# DataBinder.Eval(Container,"TabIndex")%>
>
<NOBR>
<b><%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container,"DateTimeString","{0:G}"))%> - <%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container,"DataItem.EndDate","{0:t}"))%></b></NOBR><br>

<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container,"DataItem.Title","{0:G}"))%>
</a>
</td></tr></table>
</Template>

The only change here is adding the EndDate (<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container,"DataItem.EndDate","{0:t}"))%></<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container,"DataItem.EndDate","{0:t}"))%>)

We have rolled this out on to our live system so 100% sure it works now... Thanks!





Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

Anonymous12342222222222222222222

Hi,

Is there any way to modify the default Month view of a calendar to start on a Monday rather than Sunday

Any help is GREATLY appreciated.

TIA,

Justin Stumpf





Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

rick postmus

Yes, you can edit your workweek by going to the top site and go to the site configuration. At the site configuration you can edit your Regional setup. There you can change the starting day of the week and lots of oter stuff.




Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

dattard

ajpion wrote:

I would like to alter the view of the monthly calendar to display the start and end time of an event. The default view is displaying the start time and the event title.

Example:

3:00PM

Meeting

I would like the view to show:

3:00PM-4:00PM

Meeting

Create a calculated column using whatever combination of the other fields and punctuation you like. e.g. [Start Time] & " - " & [End Time] Then make that calculated column the Month View Title or Week View Title or whatever.






Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

Anonymous12342222222222222222222

WOW, I cannot believe I missed that one! Thanks for the help all, I appreciate it!

Changing the first day of the work week did the trick, now all business calendars begin on a monday like they should...

TA,

JUstin Stumpf





Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

sharepoint2007

hi,
i am trying to show only from monday to friday at calendar view.
i have ticked the days from reginal settings but it doesn't seem doing anything.
Do you know how to do this
Thanks




Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

russ63

So how do you change the month view title to reflect the column of your choosing



Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

CarrieAnn

I have a question.. Maybe someone out there can help. I would like to have multiple date ranges added. Right now I can only add one start and end date and would like to have two. I would aslo like to be able to put in more then one refrence for an item such as. The Name and the ID, and what date range it refrences Such as Hardware delivery date is the one search date range I want and the other is Integration date.. If there is anyone out there who can think of how to alter the montly calendar view to do this.. You will be my new best friend. I have tried just adding a new lookup and it didn't work. If I add another webpart it puts a 2 calendar views on one page instead of it being one.

Thanks,

CarrieAnn





Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

KSingle

This is exactly what we were looking for, but unfortunately I cannot get this to work. I took what you have here and copied it and replaced that section of this file and yet it is still not working. Is there something else I need to do with this I also had a question about what you typed at the end of your post:

The only change here is adding the EndDate (<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container,"DataItem.EndDate","{0:t}"))%></<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container,"DataItem.EndDate","{0:t}"))%>)

This seems to be the same line written twice, but I only see it once in your longer portion outlining what needs to be here, which one is correct





Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

DLMosser

I have tried both methods - first to create a calculated column - that solution gave me a decimal number even though I selected date/time format.

The second solution to modify the defaulttemplates.ascx file with the modified code - did not produce any changes.

Any other ideas of how to get the end time to show on the calendar





Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

JXJ

Did you "iisreset" after changing the ascx file You have to do that for the changes to take effect.





Re: SharePoint - Design and Customization Alter Sharepoint 3.0 Monthly Calendar View

DLMosser

Actually I rebooted the entire server. Other than replacing that section of code in the defaulttemplates.ascx file - are there any other changes I need to make to get this to work