rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: Beaker on September 12, 2008, 08:28:56 AM

Title: How to add HFS variables to index.htm
Post by: Beaker on September 12, 2008, 08:28:56 AM
Hello,
I'm new and apologize for this topic, but I'm unable answer question myself.

I want to create an index.html file that has a link to real HFS page.
The current index.html page was "bound to real folder in HFS".
I'm using a real folder.
In the meantime I was able to find out, that a simple Link to the folder is one solutionto link to HFS folder structure.
But is it possible to use HFS variables for index.hrml page such as in templates?
I tried some variables from HFS (such as %version%) but it's not resolved by HFS.

I searched the forum, but didn't found the information I'm looking for, although I'm quite sure that it was described here..

regards, Michael
Title: Re: How to add HFS variables to index.htm
Post by: Foggy on September 12, 2008, 09:41:42 AM
It is not possible to include hfs variables in an external html file because hfs just serves the page and doesn't build it.

But that gives me the idea of binding the folder to a user created template section. Is such a thing possible rejetto?
Title: Re: How to add HFS variables to index.htm
Post by: Mars on September 12, 2008, 10:23:55 AM
rename your index.html as hfs.diff.tpl

hfs detect it as a template
Title: Re: How to add HFS variables to index.htm
Post by: rejetto on September 16, 2008, 02:03:16 AM
mars' solution should be enough
Title: Re: How to add HFS variables to index.htm
Post by: Beaker on September 21, 2008, 03:21:30 AM
Thanks for help.
although I cannot do tests on the HFS for now,
I think, it will help.
Thank you!

 ::)

Michael