I've done some tweaking of the "basic" template, added style sheets to make it match their existing site better, etc. But my pace is turtle-slow, and I know someone more familiar with the custom tags, etc. could probably do it in two seconds... wondering if anyone could share their expertise on the code required.
Basically I would like the following:- compact, date-only calendar on the right- Clickable list of events for the selected month on the left.- Would need the individual event page to match as well, of course.
Any help much appreciated!thanks!Adam
Have a look at the "Headlines" template at the Unofficial CalendarScript - Mods and Plugins site. Just call it twice (once each way) via 2 SSI tags on the same page.
Dan O.
------------------
Adam
Well, thanks to some late-late-night hacking and your brilliant template, I'm nearly there! My "default.html" now includes your 2 SSI's which I've modified according to my needs: http://www.adamabrams.com/cgi-bin/calendar/calendar.cgi?month=9&year=2003
Two (hopefully easy) questions:
How exactly do I make the titles of the events into links to an event view? (Description on left, calendar on right) I still can't quite wrap my head around it. I'm assuming I have to add an option for a single-event view to ssi_max_events.html... and an <A></A> that includes the correct cgi code... but my brain is full at the moment...!
My current code for ssi_max_events.html follows.
Thankyouverymuch!Adam
<% &getEvents( {'duration'=>$in{duration}} ); $DAY = $Grid->{'grid'}->
<%= $EVENT->{'details'}->{'title'} %><BR> <% if($total_trueevents >= $max_events) { exit(); }%> <%/FOREACH%></td></tr> <%/IF%> <%}%><%/FOREACH%></table><%unless($total_events){%><CENTER><I>No Events</I></CENTER><% } %>
It's not my template but was contributed by Kent (a previous forum regular).
** My "default.html" now includes your 2 SSI's **
What I was suggesting was including those 2 templates into a plain SSI parsed HTML file, not into a CalendarScript template.
BTW. I don't know if your mini calendar is working the way it is suppose to as I believe the dates which have events scheduled on them should be highlighted. Also, the links from those dates should go to a 'Day View' page which lists the events scheduled on that date only. They don't, it just goes back to the same month view.
Your display looks quite promising though. Maybe when you get the bugs worked out you'll consider making a copy available at the Unofficial CalendarScript - Mods and Plugins site?
** How exactly do I make the titles of the events into links to an event view? **
I assume (I don't know for sure because I don't use that template myself) the same way they it was done on the original default.html template file. Try searching it for "<%= EVENT FIELD(title) %>" (without the quotes) to see code examples.
To link events to the corresponding calendar events, use this code in your ssi.html:
code:<A HREF="<%=$CGI_URL_QUERYSTRING%>view=Event&event_id=<%= EVENT FIELD(id) %>" CLASS="gridtext"><%= $EVENT->{'details'}->{'title'} %></a>
<A HREF="<%=$CGI_URL_QUERYSTRING%>view=Event&event_id=<%= EVENT FIELD(id) %>" CLASS="gridtext"><%= $EVENT->{'details'}->{'title'} %></a>
One thing though: any idea why I get an error when I click on a day of the month? http://www.adamabrams.com/cgi-bin/calendar/calendar.cgi
(Still a bit rough around the edges, be warned)
And can the current day be highlighted in a different colour?
Thanks!
Cos
If you look at the link URLs you'll see the problem (HASH(0x8315cf0) bolded below):
http://www.adamabrams.com/cgi-bin/calendar/calendar.cgi?view=Day&datestring=2 003HASH(0x8315cf0)24
It looks like one of the variables you've used to genterate the link URL isn't correct or isn't used correctly.
** can the current day be highlighted in a different colour? **
I'm sure it's possible as the original default.html template file did it. Have a look how it was done there and see if you can make a similar conditional in the template code you're using.
** I think I _nearly_ have it all sorted out now **
Looks good but it is generating a JavaScript error when loaded.
BTW. I guess you haven't gotten to the Event View part of the template as clicking on one of the event titles causes (most of) the calendar grid to not be displayed.
[This message has been edited by DanO (edited September 26, 2003).]
I'll post a note here about it once it and it's documentation is finished.
[This message has been edited by DanO (edited October 22, 2003).]
Thanks again!
BTW. It is NOT an SSI template but instead meant to replace the default calendar view.You can see some sample images of its output at the following link:
LINK > DoubleCal Template/Plug-in Images
Let me know if you have any questions.
[This message has been edited by DanO (edited November 29, 2003).]
It won't be long now before I'll be needing that script, so the timing couldn't be better.
Look for a generous PayPal donation from me soon!
Cosmo