** mabey to be able to call the GRID_CELL_TEXT_COLOR for the calendar the event came from **
As far as i know, those values are stores in a file for each specific calendar. It would likely mean opening up that many additional files each time a calendar page is loaded. That would creat added server load (over and above what CalendarScript already uses).
It may be possible but I don't know the code to do it.
** I was wondering if there was an easier way **
If you are familiar with CSS, you could define some CCS cl;asses keyed on each calendar's name. That way you wouldn't need the all the if/else code but instead just add the calendar name to a tag to style the text. EG.
instead of
... CLASS="gridtext"><%= EVENT FIELD(title) %></A><BR>
use something like:
... CLASS="<%= $site_cal->{$EVENT->{details}->{calendarref}} #>"><%= EVENT FIELD(title) %></A><BR>
Dan O.
------------------