quote:
it might be more trouble than it's worth, and i don't want to do anything to slow down the calendar- it's already kind of loaded with over a hundred events
The jist of it is to make links that pass a unique variable and value back to the calendar. In the calendar template every place it prints the events (usually after <%FOREACH EVENT%> ), you set up a if conditional using the unique variable's value for whether to print the event HTML code or not. Eg.
Assuming the name of the unique variable you're using is $unique_variable and the value you are passing is actually one value from an event field's select list, something like the following could be used:
<%FOREACH EVENT%>
<% if ($EVENT->{'details'}->{'Real_Field_Name'} eg $unique_variable ) { %>
code to be printed here
<% } %>
If you passed "unique_variable=Region1" and the event to be displayed contained that value, it would be printed.
Or you could use something like:
<%FOREACH EVENT%>
<% next if ($EVENT->{'details'}->{'Real_Field_Name'} ne $unique_variable ); %>
In that case if the event to be displayed didn't contain that value, it would be skipped. This way is probably simpler.
Dan O.
BTW I think the actual overhead would be minimal as the information is already in an array so nothing extra would have to be loaded.
------------------
[This message has been edited by DanO (edited June 15, 2002).]