Sorry, I'm still getting used to CalendarScripts terms. Anyway, I did solve the problem. I'm developing CalendarScript for a Community Center which rents out it's main hall, conference rooms, etc. For each entry, I wanted to show a Color Icon to indicate the entry status.
For example, Ok to stage event - GREEN, Event Requirements not met, - RED, . . etc.
Anyway, I added a custom field call "EventStatus" which contains a state-Id code range 1-9 which would indicate color plus an additional 20-30 char description.
Sample text in EventStatus is follows:
"<1> Agreement Signed, awaiting receipt of Fees and Deposits."
"<2> EventOk to Stage."
"<3> Event Pending Cancellation"
...
I was able to implement this scheme as follows:
default.html template
<%-- GRID STYLE DISPLAY --%>
<%FOREACH EVENT%>
----------------------------------------------
<%
if ($EVENT->{details}->{EventStatus} =~ /1/} { $icon="ICON-Yellow.gif";}
elsif ($EVENT->{details}->{EventStatus} =~ /2/} {$icon="ICON-Green.gif";}
elsif ($EVENT->{details}->{EventStatus} =~ /3/} {$icon="ICON-Red.gif";}
else {$icon="ICON-Grey.gif";}
%>
<img src="http://###.###.#.###:8080/<%=$icon%>" border=0 >
----------------------------------------------
<%$i++;%> <SPAN CLASS="gridtext">
. . .
Note: I removed the local IP address for this posting.
I'm still testing, but this seems to work. The Icons are little 10x10 gifs and are displayed to the left of the time text. This works for all Grids and I haven't implemented yet for the Daily format. I'll post again, when I get that working. This is meta-code, so there might be some typos.
-Dennis