rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: parade on November 07, 2007, 09:24:25 AM
-
Is HFS able to show the file-name of the imported template?
I browsed the menue and maybe I'm blind but all I can find is "Customzed template" in the bottom line.
Greetings
parade
-
Its a good idea. But HFS reads from a file called hfs.tpl. This will one day allow dynamic editing with external programs and the ability to install templates which will be great.
-
In the to-do-list is the option #use..path/name.tpl , so wie will have a name, that can then be included IN the template if there is a need for it. See:
Examples: #use /sys/bigimage.tpl (for full or partial template)
#use /sys/templates/snd%user%.tpl (should exist: snd.tpl (for @anonymous) as sndusername.tpl for each user with access rights to the folder, or even it would be possible search first for sndusername.tpl, and if it doesn't exist, use snd.tpl
yes, this would fit both needs...
in to-do
-
there is no file name.
when you import it, it is copied to the internal memory reserved for the template.
there is only one memory/template.
bacter, i guess this feature will be a macro :) and i think i can do it in 1 minute. (that's why i was enthusiast for macros)
-
I suggest to place at the head of your template
<!-- this template is named: NAME OF TEMPLATE -->
<HTML .....
-
Does he just mean the name of the template, or was he saying he wants to show the Filename that HFS is currently using. I have looked for this before when I had multiple copies of something and just a "Copy of %originalfile%" and I wasnt sure which files was being used, and some times screwed up my custom settings. Assuming thats what he meant, ignore this, if not, could this be added easily?
So it would be like: HTML Template - myfilename.tpl
-Kurt
-
Does he just mean the name of the template, or was he saying he wants to show the Filename that HFS is currently using.
It is the filename, that I mean.
I was looking for it because at some point of editing I didn't know which template-filename I actually was using in HFS.
When I started the thread I just had forgotten, that HFS actually loads HFS.TPL.
-
the comment solution is not bad
and from next build you could just have a single line in the template
{{load|myTemplate1.tpl}}
so you won't go mad
-
lol i'll be sure to add this before i release, don't want users going insane on me.
brb gotta let the Thunderchicken out of its hutch for a bit. *getting Foggy to beta test tonight hehe*