If you want to see the problem go to http://www.riponinternationalfestival.com/cgi-bin/calendar/calendar.pl?year=2005&month=09&date=03 (date necessary to show calendar for this date onwards) and click on any event (always shows 3rd September at top of listing)
Help!
Thanks
===Toby Wallis===
===Toby===
------------------
Not without knowing what code you're using in the template to print the date there.
BTW. What code are you using to print the event time?
Dan O.
[This message has been edited by DanO (edited June 03, 2005).]
<TD ALIGN="center" WIDTH="20%" BGCOLOR="<%=$_NAVIGATION_BGCOLOR%>"><B><SPAN CLASS="navigationtext"><FONT <%=$_HEADER_SIZE%> COLOR="<%=$_NAVIGATION_TEXT_COLOR%>"><%= EVENT FIELD(title) %></FONT></SPAN></B></TD>
with:
<TD ALIGN="center" WIDTH="60%" BGCOLOR="<%=$_NAVIGATION_BGCOLOR%>"><B><SPAN CLASS="navigationtext"><FONT <%=$_HEADER_SIZE%> COLOR="<%=$_NAVIGATION_TEXT_COLOR%>"><%=$DAY->{'dayname'}%> <%=$DAY->{'monthname'}%> <%=$DATE%>, <%=$YEAR%></FONT></SPAN></B></TD>
I'm not printing out the time in this view.
The one event I looked at did, "Start Time: 7.30 pm". I assume the other would too. How is that time display being generated???
** <%=$DAY->{'dayname'}%> <%=$DAY->{'monthname'}%> <%=$DATE%>, <%=$YEAR%> **
If you want to use that code to display the date, you'll have to pass the proper values for date, month and year in the link to the template similar to your link to the main calendar view you posted above (ie. year=2005&month=09&date=03).
You can read about doing something similar (although maybe not exactly what you need) in the previous forum message "Add name of Day to datestring in Event View".
BTW. I'm surprised your code worked at all as I though the $DAY->{... variables where only available inside the calendar grids themselves.
The only other way I know of is the more detailed method as described in the previous forum message "Adding Date and Time to Event View".
JFYI
Oh. Too bad, if you had figured out how to get it from the event's schedule, something similar might have been used to retrieve the event's date.
I guess you'll have to modify the links in the calendar grids to pass the appropriate information to the event detail display.
Search the calendar.pl file for $Template::CGI_URL_QUERYSTRING
** If so I should be able to mod it out... **
I don't know if you were thinking of some sort of global change but it is going to have to be different for the links in each day in the grids.