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


Login with username, password and session length

Search

 
Advanced search

8021 Posts in 1850 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Every Monday in grid view, do this...
Pages: [1]   Go Down
Print
Author Topic: Every Monday in grid view, do this...  (Read 376 times)
0 Members and 1 Guest are viewing this topic.
Alvy
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: July 23, 2003, 01:34:00 AM »

I know I have been asking a lot of ?'s.. but it's the only way I will learn.
ANyway.. I want to customize the month veiw to display a link at the bottom of every Monday's cell. I don't want to use a recurring envent due to other problems.

I have tried most every thing I know.. but to no avail.

Has anyone done this already.. I searched & searched the forums to see.

Once again...thanks

alvy

[This message has been edited by Alvy (edited July 23, 2003).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 219

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


WWW
« Reply #1 on: July 24, 2003, 08:28:00 PM »

** I want to customize the month veiw to display a link at the bottom of every Monday's cell. **

Look in the default.html template file after the lines <%-- MONTHLY OR WEEKLY VIEW --%> and <%FOREACH EVENT%>. Right before the line <%/FOREACH%> try adding the HTML code you want displayed between the following tags:

<% if ($i==1) { %>
    -- Your Code Here --
<% } %>

That is assuming Monday falls on the second day of your calendar.

Dan O.

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

Logged
Alvy
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: July 25, 2003, 02:23:00 AM »

Thanks... but it is not working.. it is displaying the inserted code after every event instead of on mondays.
I tried moving it to before <%FOREACH EVENT%> and that did not work and I tryed to move it after /foreach. no luck

did I miss what you were suggesting?

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 219

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


WWW
« Reply #3 on: July 25, 2003, 12:57:00 PM »

My mistake, $i is a counter for the number of events in the cell. You can try the following (NOTE: clarified instructions):

Look in the default.html template file after the lines <%-- MONTHLY OR WEEKLY VIEW --%> and <%FOREACH EVENT%>. Right before the FIRST occurence of the line <%/FOREACH%> which follows, try adding the HTML code you want displayed between the following tags:


<% if ($COL==1) { %>
     -- Your Code Here --
<% } %>


Dan O.

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

Logged
Alvy
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: July 26, 2003, 05:12:00 PM »

Thanks for getting me on the right track....

Putting the snippet you gave right before the FIRST occurence of the line <%/FOREACH%>
Gives me the code only if an event occurs...

So I dropped right AFTER  the FIRST occurence of the line <%/FOREACH%>
and I get exactly what I wanted ... the code every monday regardless of an event!

THANKS.......

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 219

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


WWW
« Reply #5 on: July 26, 2003, 05:41:00 PM »

Glad to hear you figured it out.

Dan O.

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

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