However, I'd also like to add the day name to the date string. In other words, I'd like Feburay 3, 2003 to read:
Monday, Feburary 3, 2003.
Any suggestions?
--Steve
Dan O.
[This message has been edited by DanO (edited November 25, 2004).]
How would I pass the day name to the date string?
The code I am using for the link to the Event View page is: <A HREF="<%=$CGI_URL_QUERYSTRING%>view=Event&event_id=<%= EVENT FIELD(id) %>&datestring=<%=$DAY->{datestring}%>" CLASS="gridtext"><%= EVENT FIELD(title) %></A><BR>
How would I modify this to include the day name? Thanks,
W
------------------
&dayname=<%= $DAY->{dayname} %>
That information should then be available for printing in the template using a tag like:
<%= $in{dayname} %>
w
I had to use a tag like this to keep the static dayname from being displayed (passed back in the URL) in Month View when returning via link from a Day or Event View page.
<% if ($VIEW eq "Day" | | $VIEW eq "Event") {%><%= $in{dayname} %><%}%>
[This message has been edited by musicvid (edited December 05, 2004).]
I believe the original question was about modifying the 'Event View' screen so if used just in the Event View part of the template, it shouldn't affect any other displays.
BTW. "dayname" is probably a bad variable name to use for the passed information as it is already a variable used by the calendar. It might be a better idea to use something different like the following so it doesn't over write an existing calendar variable value. Eg.
&thisdayname=<%= $DAY->{dayname} %>
<%= $in{thisdayname} %>
But you can make up a variable name for yourself which is sure not to be used by CalendarScript otherwise. Maybe "danodayname" ?
This part "$DAY->{dayname}" must remain as it is!
JFYI
[This message has been edited by DanO (edited December 05, 2004).]
Unfortunately, any linkback to Month View from Event View carries &dayname=Tuesday or the like in the URL. Dunno why.
"..."dayname" is probably a bad variable name to use for the passed information as it is already a variable used by the calendar."
Ok, "danodayname" it is!
Thanks again for all your help to us scriptually challenged.
That is true but I don't see anywhere else in the default.html template file where $in{dayname} is used to make it visible to users. If you've only added the <%= $in{dayname} %> inside the Event View section, I don't see how it would be displayed anywhere else for users to see.
** any linkback to Month View carries... Dunno why. **
Because CalendarScript is designed to build onto the previous query string for the next time it is used.
[This message has been edited by musicvid (edited December 06, 2004).]
I have tried adding the &thisdayname=<%= $DAY->{dayname} %> to the <A HREF> tag in the Search View section of the default.html, but alas, no joy.
Any ideas?
------------------Geoffrey H. GoldbergPittsburgh