Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Links 3.2 File Includes

Quote Reply
Links 3.2 File Includes
I need to do file includes to a topsite script. The old version only required


Code:
<!--#include file="/top/topsites.html"-->

This of course doesn't parse unless the SSI is on, and the page build is static.

if I use the GT system like this:

Code:
<%include /top/topsites.html%>

I receive "Error: Can't load included file... blah blah.

How do we do file includes other than the GT templates from other scripts and directories?

Thanks!

Diversity by Design
Quote Reply
Re: [diversity] Links 3.2 File Includes In reply to
You're using an absolute path, so it's probably looking for the file in the wrong place.

Adrian
Quote Reply
Re: [brewt] Links 3.2 File Includes In reply to
Yes. But how do we make it relative in a world of templates?

Also, can I use the GT file include call so it works on the dynamic pages too? Do I need to include the full path?

Last edited by:

diversity: Mar 1, 2007, 8:23 PM
Quote Reply
Re: [diversity] Links 3.2 File Includes In reply to
Don't put a / at the front?

Adrian
Quote Reply
Re: [brewt] Links 3.2 File Includes In reply to
Ahhh... instead of what I was doing, go absolute to the full path.

Code:
<%include /home/user_account/etc/top/topsites.html%>

Thanks Adrian!