UBBFriend: Email This Page to Someone!
  CalendarScript Support Forum
  Customization
  Using SSI to call the days events

Post New Topic  Post A Reply
profile | register | preferences | search

next newest topic | next oldest topic
Author Topic:   Using SSI to call the days events
dbuckley
Junior Member
posted August 04, 2003 02:30 PM     Click Here to See the Profile for dbuckley   Click Here to Email dbuckley     Edit/Delete Message
I'm confused about a couple of things and I hope someone can clear them up for me. I know this has been touched on in several posts, but those posts don't seem to be very specific.

First, how to call the days events using SSI. In the html page calling the information I've used:
<!--#include virtual="/cgi-bin/calendar.pl" -->
This calls the entire default calendar.
Changing it to:
<!--#include virtual="/cgi-bin/calendar.pl?someothercalendar" --> will post the entire "someothercalendar".

I've tried:
<!--#include virtual="/cgi-bin/calendar.pl?template=ssi.html" -->
That however, calls the entire months events, but only from the "default" calendar. I'm unclear as to the function of the "ssi.txt" file, changing it (or even deleting it has no effect). Do I need to change the include line? I realize changing the ssi.html file will change the results, but only for the "default" calendar.

What I NEED to do is call the days events to an html page from a particular calendar. Since I have multiple calendars with different departments using them, I need, for example, Department 1's page to call days events from Calendar 1, and Departement 2's page to call events from Calendar 2.

I'm using RedHat 8 with Apache 2.

Thanks for any help. This is a wonderful script that I really enjoy using!

IP: Logged

Mango
Junior Member
posted August 04, 2003 03:27 PM     Click Here to See the Profile for Mango   Click Here to Email Mango     Edit/Delete Message
Im stuck here too, Im trying to add just a list view of this months items. I get it to show up on my page but it doesnt look good, and there are no links to individual items, where do I go to edit this?

Thanks

ps I used :

<!--#include virtual="/cgi-bin/calendar.pl?template=ssi_max_days.html" -->

to call

------------------
Thanks
Jeff
http://www.oldtownflorist.com

IP: Logged

DanO
Member
posted August 04, 2003 07:08 PM     Click Here to See the Profile for DanO   Click Here to Email DanO     Edit/Delete Message
** I've tried:
<!--#include virtual="/cgi-bin/calendar.pl?template=ssi.html" -->
That however, calls the entire months events **

You have to pass all the parameters that are contained in the ssi.txt file as each tells the template something different. Eg.

template=ssi.html

Means display the results in the ssi.html template file.

duration=2d

Means get 2 days events.

calendar=test

*Optional: Means get events from the "test" calendar. That is optional but will only display the calendar defined as the default if not present.

BTW. An example of such an SSI call is shown in the previous forum message "SSI head ache !".

** but only from the "default" calendar. **

A template will only display events from a single calendar at a time unless you've installed the Meta Calendar plug-in (which displays events from all calendars at the same time). Otherwise you'd have to have multiple SSI calls, each referencing a different calendar.

** What I NEED to do is call the days events to an html page **

Technically speaking, you will only be able to include files into an SSI page (which usually requires a file name extension of .shtml or .sht depending on server configuration) not a plain HTML page.


Mango

** <!--#include virtual="/cgi-bin/calendar.pl?template=ssi_max_days.html" -->
I get it to show up on my page but it doesnt look good, and there are no links to individual items, where do I go to edit this? **

You will have to edit the ssi_max_days.html file.

Dan O.


[This message has been edited by DanO (edited August 04, 2003).]

IP: Logged

dbuckley
Junior Member
posted August 05, 2003 09:24 AM     Click Here to See the Profile for dbuckley   Click Here to Email dbuckley     Edit/Delete Message
Dan,
Thank you, that fixed my problem! I changed the include to:
<!--#include virtual="../cgi-bin/calendar.pl?template=ssi.html&calendar=myothercalendar&duration=1d"-->

I'm slow, but I tend to get there eventually. :-)

The "html" extension works because I have Xbithack set to "on" in my apache config. When I chmod a file to 755 it will execute the include (I wonder sometimes if this might be a security risk, but I haven't found any info suggesting that it would be).

Thank you again for your help. BTW, I'm working on installing your "Move" Plugin. I'm hoping that will save some folks here a lot of time.

Dan B.

------------------

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

CalendarScript Home