Gossamer Forum
Quote Reply
SSI
How can I enable the script so that my templates can be ssi files and use include statements?

thanks

Quote Reply
Re: SSI In reply to
Change $build_extension to .shtml and change $build_index to index.shtml, then put the SSI tag into the template file.

Installations:http://www.wiredon.net/gt/

Quote Reply
Re: SSI In reply to
Do the templates need to have the .shtml extenion as well??

Quote Reply
Re: SSI In reply to
No.

Installations:http://www.wiredon.net/gt/

Quote Reply
Re: SSI In reply to
I've done that and it is still not using the include files.

Here is the pages I'm trying to get to work:

http://www.powwows.com/cgi-bin/links/add.cgi

Quote Reply
Re: SSI In reply to
Please go here:

http://www.gossamer-threads.com/...ew=&sb=&vc=1


Installations:http://www.wiredon.net/gt/

Quote Reply
Re: SSI In reply to
I tried this:

<%include side.inc%>

I get an error:

Unkown Tag: include side.inc

????

Quote Reply
Re: SSI In reply to
Hi,

You will need to install the enhanced template routine here:

http://www.gossamer-threads.com/...es/Detailed/877.html

Installations:http://www.wiredon.net/gt/

Quote Reply
Re: SSI In reply to
Great, now, how do I have it pull a file from another directory outside of /templates?

I tried the full /home/sites/...etc, but it didn't find it.



Quote Reply
Re: SSI In reply to
You'd need to alter this line:

Code:
if (open (INC, "${$self}{'ROOT'}/$1")) {
to something like...

Code:
if (open (INC, "/path/to/includes/$1")) {
Installations:http://www.wiredon.net/gt/

Quote Reply
Re: SSI In reply to
Check this thread. Might help?

http://www.gossamer-threads.com/...w=collapsed&sb=5