I am testing the DoubleCal template (which is worth more than the $10 I paid!) and have a small quirk with simma's ssi.html template (the one with links).
When the DoubleCal plugin is active, the ssi call shows all the events for the current month including those already passed, as well as those called by &duration=. With the plugin turned off, the events drop off the top daily after expiration as expected.
My call looks like this (ssi.txt doesn't work on my server):<!--#include virtual="/cgi-bin/calendar/calendar.pl?template=ssi.html&duration=60d&calendar=default"-->
Can I do something to the ssi call or plugin to ignore expired events without affecting the DoubleCal display?
Thanks from an enthusiastic newbie.
Both templates should work together Ok but I don't have the time at the moment to look into why it isn't, unfortunately.
For a temporary fix, try editing the DoubleCal's display_after_getEvents.pl file and adding this code immediately after the line:
sub display_after_getEvents {
code:if ( in{'template'} eq "ssi.html" ) return;
if ( in{'template'} eq "ssi.html" ) return;
Dan O.
------------------
Try using the original DoubleCal display_after_getEvents.pl file and the original ssi.html template file and see if it behaves any differently. That should indicate if the problem is in the new SSI template you're using or the plug-in's code (even though disabling the plug-in is a pretty good sign where the problem lies).
However, I discovered the quirk is related to using &duration=60d in the ssi call, like above.
Without &duration=60d in the call, it displays all events for the current month (my default view).
With &duration=60d in the call, and the DoubleCal plugin Enabled, it shows all events for the current month and the next sixty days.
With &duration=60d in the call, and the DoubleCal plugin Disabled, it shows events from today forward for sixty days (events drop off the top after expiration).
All this being said, it's more of a curiosity than an issue to me, and I LOVE DoubleCal. I've had luck getting a fully interactive DoubleCal working on a test homepage (actually the reverse) and I like the functionality much better than ssi. http://ovationplayers.com/LCMA/littletonmusic/indextest2.shtml (Pardon the dinosaur page, I just inherited it).
[This message has been edited by musicvid (edited April 30, 2004).]
When finished, the new lines should look something like:
$EventList2->{$Grid->{'grid'}...
and
$Template::EventList2 = $EventList2;
See if that fixes the SSI template's display on your installation.
[This message has been edited by DanO (edited April 30, 2004).]
Glad to hear. I'll correct the DoubleCal plug-in's code so future downloads won't be subject to that limitation.
I purposely didn't modify the links to event descriptions in the DoubleCal template because I am using another printReady routine and don't need the popup, but I keep MetaCal enabled for event compiling from different calendars.
It works fine when I call ?calendar=meta&template=doublecal.html except that the minical does not show up in Event View when used this way. Works fine in Month and Day Views.
Is there a bit of code that will overcome this?
TAIA
[This message has been edited by musicvid (edited May 05, 2004).]
I don't see anything at all coming up at http://ovationplayers.com/cgi-bin/calendar/calendar.pl?calendar=meta&template=doublecal.html
Do you have a calendar defined which uses the calendar key "meta"?
It has to exist (be a real calendar) before any template will be able to display anything from it. The Meta Calendar doesn't make a new calendar, it display evens from one in another (already existing one).
I just noticed, the event details don't seem to be showing up either.
I believe that's because the plug-in doesn't know which calendar to look for the event. As noted in the DoubleCal installation instructions:
quote:The DoubleCal Template is compatable with the Meta Calendar plug-in *however*the links to Event Details would have to be modified as explained in the Meta Calendar plug-in's instructions.
I'll twiddle with it in spare time. Seems like a good opportunity for me to learn some coding.
[This message has been edited by musicvid (edited May 06, 2004).]