Sorry for showing my stupidity DanO,
I wasn't entering a value so I bet that will do it but what should my value be?
If I follow these directions and add the following code to the default.html page what should I put in for a value?
Find <!-- GRID STYLE DISPLAY -->, then look down for the line that displays the title:
<A HREF="<%=$CGI_URL_QUERYSTRING%>view=Event&event_id=<%= EVENT FIELD(id) %>" CLASS="gridtext"><%= EVENT FIELD(title) %></A><BR>
Replace that with:
<%
if ($EVENT->{details}->{category} eq "pack") {$color="#00FFFF";}
elsif ($EVENT->{details}->{category} eq "council") {$color="#0000FF";}
%>
<A HREF="<%=$CGI_URL_QUERYSTRING%>view=Event&event_id=<%= EVENT FIELD(id) %>" CLASS="gridtext"><FONT COLOR="<%=$color%>"><%= EVENT FIELD(title) %></FONT></A><BR>
You might also want to move that block of if's and elseif's up a few lines just after <%FOREACH EVENT%> so you can use <FONT COLOR="<%=$color%>"> around the time as well.
olor%>"> around the time as well.
THANKS AGAIN!!!!
------------------
I added the event field Category with the Unique ID of category. I made it a submenu
and I have the display text field as pack with the option value as pack and I have a Display text field of council and option value of council.
When I add an event I have the choice of pack or council so that part is working correctly. but when I view the calendar in the date I put my event it shows the code. This is what was showing under July 27th on the month view
if ($EVENT->{details}->{category} eq "pack") {$color="#00FFFF";}
elsif ($EVENT->{details}->{category} eq "council") {$color="#0000FF";}
10:00 am -11:00 am : <
Sorry for being a pain!!
Rick
[This message has been edited by rgreene (edited July 26, 2005).]