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
Pages: [1]   Go Down
Print
Author Topic: day abbreviations in grid  (Read 453 times)
0 Members and 1 Guest are viewing this topic.
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: February 06, 2006, 04:39:00 PM »

is there a way i can create a day of the week abbreviation (ie M, Tu, W, Th, F, Sa, Su) next to the number date in the calendar grid?

so instead of just having a 12, it could 12 - M

When i look at my calendar from my cell phone, i cant see the monday columns so i cant tell what day is what.  therefore each day would have to display the day of the week.  any thoughts?

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #1 on: February 07, 2006, 02:16:00 AM »

Try adding <%= $Grid->{'dayabbreviation'}->[$COL] %> in the appropriate place in the template.

Dan O.

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

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: February 07, 2006, 03:40:00 PM »

it doesnt seem to display anything.

i used it here ::

code:
<A HREF="<%=$CGI_URL_QUERYSTRING%>selected_datestring=<%=$DAY->{'datestring'}%>&datestring=<%=$DAY->{'datestring'}%>&view=Day" CLASS="griddatetext"><%= $Grid->{'dayabbreviation'}->[$COL] %>::<%if($DAY->{'dd'}==1&&$VIEW ne "Month"){%><%=$DAY->{'monthname'}%> <%}%><%=$DAY->{'dd'}%></A>

should that work?

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: February 09, 2006, 03:33:00 PM »

If I get time I'll try to look into it this weekend.

Dan O.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #4 on: February 09, 2006, 03:34:00 PM »

Actually, in the mean time, try the following tag instead:

<%= $DAY->{'dayabbreviation'} %>

Dan O.

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

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: February 09, 2006, 03:42:00 PM »

that worked!  thanks dan0!

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #6 on: February 10, 2006, 12:42:00 PM »

Glad to hear it.

Dan O.

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

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