Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationPlugins (Moderators: scott, DanO, Marty)day column in new_minical ssi template
Pages: [1]   Go Down
Print
Author Topic: day column in new_minical ssi template  (Read 471 times)
0 Members and 1 Guest are viewing this topic.
elitetri
New Member
*

Karma: 0
Offline Offline

Posts: 0

scallywag


WWW
« on: December 19, 2005, 01:27:00 PM »

I would like to use the new_minical.html ssi template however the date columns are displaying incorrectly. For our groups purposes the week day order is (mtwtfss). We have training events during the week (m through f) and race events on the weekend (saturday,sunday).

I've set up a calendar ssi demo page at http://elitetriangletriteam.org/calendar-includes.shtml

I set the week to start on Monday however the minical and the new_minical templates do not seem to pick up this setting.  I have not modified the template files.

Any idea on how I could modify the new_minical.html template to have the week day order as (mtwtfss)?

Could I force this change with the calendarscript admin screen at template=calendar_settings.html by starting the days on monday then specifying day1 as the start order? This is curently set as (smtwtfs) with the start order at day2.

After further review it seems that both the minical and the new_minical have days that are off by one. Meaning that they are displaying Monday Dec 19 as Sunday December 19. Can this be fixed easily? Or do I need to go back in and start my weeks off with Sunday?

OK after trying the above (resetting the week to begin on Sunday) the minical and the new_minical display their dates correctly. However we would really like to modify the display so that weeks begin on Monday and have this reflected correctly in the minical and the new_minical template. Is this possible?

------------------
--gary

[This message has been edited by elitetri (edited December 19, 2005).]

[This message has been edited by elitetri (edited December 19, 2005).]

Logged

--gary
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: December 19, 2005, 06:59:00 PM »

** we would really like to modify the display so that weeks begin on Monday and have this reflected correctly in the minical and the new_minical template. **

Try changing the code

code:
<%= substr($DAY_ABBREVIATIONS->[$COL],0,1) %>

to
code:
<%= substr($Grid->{'daynames'}->[$COL],0,1) %>

and setting the Calendar Settings 'Week Start Day' to 2.

Dan O.

------------------

Logged
elitetri
New Member
*

Karma: 0
Offline Offline

Posts: 0

scallywag


WWW
« Reply #2 on: December 23, 2005, 02:09:00 AM »

thanks Dan O.

your suggestion worked like a champ in the new_minical.html template.

------------------
--gary

Logged

--gary
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: December 23, 2005, 01:08:00 PM »

Glad to hear it.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: