Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Include Globals...

Quote Reply
Include Globals...
Using the following global, I can insert a txt file into one of my static pages <%include filename.txt%>. The problem is I have approximately 2000 txt files to insert in different pages, i.e.
/directory/file1.txt
/directory/file2.txt
and
/directory2/file1.txt
/directory2/file2.txt

and so on using the same file names multiple times, but in different directories. Is there a way to include them by using <%include directory1/file1.txt%> and <%include directory2/file1.txt%> and so on. The reason I want to do this is I want the information in a static page, while not using SSI to do it with, because of server resources.
Any help would be greatly appreciated.

</not a clue>
Quote Reply
Re: [Kilroy] Include Globals... In reply to
Never mind, figured it out. You have to use the virtual path instead of the regular path ie /home/public_html/web/directory/filename.txt. Pretty cool actually!!!! Just another great feature of LinksSQL!!!

</not a clue>