Here is ssi_max_days.html
<% $DAY = $Grid->{'grid'}->
<DT> <a href="<%= $CGI_URL %>?view=Day&datestring=<%=$YEAR%><%=$MONTH%><%=$linkday%>" target=_blank><font size=1 COLOR="#000000"><%=$DAY->{monthname}%> <%=$DAY->{'dd'}%></font></a> <BR><ul STYLE="margin:0; padding:0; margin-left:15px;list-style-type: disc; "> <%FOREACH EVENT%> <font size=1><li> <%= $EVENT->{'details'}->{'title'} %></li></font> <BR> <%/FOREACH%></ul> <BR> <%/IF%> <%}%><%/FOREACH%></DL><%unless($total_events){%><CENTER><I>No Events</I></CENTER><% } %></DIV>
Thanks!!!Kristen
Thanks!Kristen
I don't know how you can correct the above template but the original ssi.html template that is supplied with CalendarScript can display events for durations spanning months.
JFYI
Dan O.
------------------
You can see the results of the code I am using now at http://www.kristenwalker.com/test.php
Here is the code I am using now:
<%&getEvents( {'duration'=>$in{duration}} );$DAY = $Grid->{'grid'}->
%><DL><%if($MONTH <= 9) { $MONTH = "0$MONTH";}%> <%FOREACH EVENTLIST%> <%IF EVENTS EXIST%> <%$total_events++;%> <%if($DAY->{dd} >= $mday) { %> <DT> <a href="<%= $CGI_URL %>?calendar=&selected_datestring=<%=$YEAR%><%=$MONTH%><%=$DAY->{'dd'}%>&datestring=<%=$YEAR%><%=$MONTH%><%=$DAY->{'dd'}%>&template=day. html&duration=60d" target=_blank><font size=1 COLOR="#000000"><%=$DAY->{monthname}%> <%=$DAY->{'dd'}%></font></a> <BR> <DD> <ul STYLE="margin:0; padding:0; margin-left:5px;list-style-type: disc; "> <%FOREACH EVENT%> <font size=1><li> <%= $EVENT->{'details'}->{'title'} %></li></font> <BR> <%/FOREACH%></ul><br> <%/IF%> <%}%><%/FOREACH%></DL><%unless($total_events){%><CENTER><I>No Events</I></CENTER><% } %><A HREF="<%=$AdminConfig->get("calendar_url")%>?calendar=<%=$calendar_key%>">View Calendar</A>
This is the code I am using to link to the calendar day:
<a href="<%= $CGI_URL %>?calendar=&selected_datestring=<%=$YEAR%><%=$MONTH%><%=$DAY->{'dd'}%>&template=day.html" target=_blank><font size=1 COLOR="#000000"><%=$DAY->{monthname}%> <%=$DAY->{'dd'}%></font></a>
The monthname shows up correctly, but the value of <%=$MONTH%> is not changing accordingly.
Does anyone know what's going on?
Thanks!Krisen
Really?? As long as you were passing the correct duration information to the template, there should be no reason it wouldn't display more than the current month's events. AFAIK. There should be no limit to the number of days it is capable of displaying. It only defaults to the current month if no duration information is received by it.
I'm afraid I have no idea where you problem is.
[This message has been edited by DanO (edited August 17, 2005).]
From the Documentation: Customization: Defined Variables:
quote:$MONTH The month number of the currently displayed date.
Yes, use the correct variable. Check the docs at the page I previously linked to about the $Grid variable.
But, if you're just trying to generate a datestring for use in the link URL, the following variable should generate the whole datestring, no need for separate <%=$YEAR%> <%=$MONTH%> <%=$DAY->{'dd'}%> variables at all.
$DAY->{'datestring'}
BTW. Using the month variable alone wouldn't necessarily generate a 2-digit (01, 02, 03, etc.) value like the datestring would need. I believe it only returns a single digit date (1, 2, 3, etc.) but if you want to try:
$DAY->{'mm'}
[This message has been edited by DanO (edited August 19, 2005).]