Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Using SSI to call the days events
Pages: [1]   Go Down
Print
Author Topic: Using SSI to call the days events  (Read 298 times)
0 Members and 1 Guest are viewing this topic.
dbuckley
New Member
*

Karma: 0
Offline Offline

Posts: 0

webmaster


WWW
« on: August 04, 2003, 02:30:00 PM »

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!

Logged
Mango
New Member
*

Karma: 0
Offline Offline

Posts: 0

Designer


WWW
« Reply #1 on: August 04, 2003, 03:27:00 PM »

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

Logged

DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #2 on: August 04, 2003, 07:08:00 PM »

** 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).]

Logged
dbuckley
New Member
*

Karma: 0
Offline Offline

Posts: 0

webmaster


WWW
« Reply #3 on: August 05, 2003, 09:24:00 AM »

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.

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

Logged
Pages: [1]   Go Up
Print
Jump to: