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 CommunityEverything ElseGeneral Use (Moderators: scott, DanO, Marty)Passing CGI Variables using SSI
Pages: [1]   Go Down
Print
Author Topic: Passing CGI Variables using SSI  (Read 371 times)
0 Members and 1 Guest are viewing this topic.
lincolnmead
New Member
*

Karma: 0
Offline Offline

Posts: 0

IT Weasle


WWW
« on: May 24, 2004, 05:39:00 PM »

howdy,

 I have a page using SSI up and running and can get this to work:
<!--#exec cgi="/cgi-bin/calendar/calendar.cgi"-->

but not this:

<!--#exec cgi="/cgi-bin/calendar/calendar.cgi?template=ssi.html"-->

I'm on a NetBSD server and have tested the SSI with other directives and they work fine. Any ideas on what I'm screwing up?

I checked through the faq and I have gotten ssi to work by using the ssi tutorial but I can't get the to accept any calscript variable.

Logged

ZenCrafters: Total Enlightenment In About An Hour...
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #1 on: May 24, 2004, 09:20:00 PM »

Servers are different, but try this:

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

Also, remember that ssi.html has to reside in your default template folder in order to be found.
------------------

[This message has been edited by musicvid (edited May 24, 2004).]

Logged
lincolnmead
New Member
*

Karma: 0
Offline Offline

Posts: 0

IT Weasle


WWW
« Reply #2 on: May 25, 2004, 10:39:00 AM »

Thanks! That seems to have worked. It's ignoring my ssi.txt and displaying the current month.  The ssi.txt file has settings of

template=ssi.html
duration=7d

ssi.txt is in my default directory and the permissions are correct. Do I need to pass the variables in the ssi code?

------------------
ZenCrafters: Total Enlightenment In About An Hour...

Logged

ZenCrafters: Total Enlightenment In About An Hour...
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #3 on: May 25, 2004, 02:45:00 PM »

 **Do I need to pass the variables in the ssi code?**

If the variables you want to pass are different than the calendar defaults, I think the answer is yes. Probably DanO can help you more on this than I can, since I'm really new to this.

The ssi.txt doesn't seem to work for everybody, so passing the variables in the URL seems to be the preferred method.

The way I use it, my includes look something like this:

<!--include virtual="/cgi-bin/calendar/calendar.pl?calendar=events&template=ssi.html&duration=60d"-->
------------------

[This message has been edited by musicvid (edited May 25, 2004).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #4 on: May 25, 2004, 07:28:00 PM »

** Do I need to pass the variables in the ssi code? **

If you have to pass the template file name in your SSI call to get that template to display, you'll have to pass the rest of the variables from the ssi.txt file too.

Dan O.

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

Logged
lincolnmead
New Member
*

Karma: 0
Offline Offline

Posts: 0

IT Weasle


WWW
« Reply #5 on: May 26, 2004, 03:39:00 PM »

Yup. that did the trick. Thank you very much for the help.

------------------
ZenCrafters: Total Enlightenment In About An Hour...

Logged

ZenCrafters: Total Enlightenment In About An Hour...
Pages: [1]   Go Up
Print
Jump to: