rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: ebola on August 16, 2008, 10:34:05 AM

Title: getting %number-files% from a spec folder ?
Post by: ebola on August 16, 2008, 10:34:05 AM
Hi

I have created a section called [generalinfo]. Here I can use symbols that are available in all sections. This is fine & working.

But now i want to include there (in section [generalinfo]) the symbol %number-files% from a special folder o HD. How is this done?


Cheers,
ebola
Title: Re: getting %number-files% from a spec folder ?
Post by: Foggy on August 16, 2008, 01:11:16 PM
I don't understand what you are trying to achieve :(
Title: Re: getting %number-files% from a spec folder ?
Post by: rejetto on August 16, 2008, 01:23:18 PM
you get that symbol only when that folder is browsed.
but in the future, if an {.exec.} macro will be created, there will be a way.
Title: Re: getting %number-files% from a spec folder ?
Post by: ebola on August 16, 2008, 01:52:15 PM
Hi

Thx for your answer, rejetto :)

@Foggy :
This is for a project where HFS is used as a webserver displaying static websites - but some sites including additional, variable informations. Sure, PHP would be possible but I like bulletproof HFS with non-script-support for "exposed" things :)


Cheers,
ebola
Title: Re: getting %number-files% from a spec folder ?
Post by: rejetto on August 16, 2008, 01:58:02 PM
had an idea.

if you make an external program/script that writes the information you need in a text file, then you can load it in HFS with {.load|that file with the info.txt.}
Title: Re: getting %number-files% from a spec folder ?
Post by: ebola on August 16, 2008, 03:39:31 PM
Hi

Yeah.
I already do this with various stuff. For example there is a dummy-html that is edited (filled with systeminfos like Systemuptime, free RAM, ...) by a external program. HFS copy's and fill's it with other things that are possible with macros + displays it after all.


Cheers,
ebola