rejetto forum
Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: kaler on September 03, 2009, 03:21:08 PM
-
hello i've a question...
you can make sections like " [section1] <html>....</html>
[section2] <html>....</html>
...
All you can browse with " /~section1 " or " /~section2 "
but can you make an hfs.diff.tpl with section like " /section/~section3 "
or is it impossible...
-
no it is not possible
~section is always assigned to one section of the main tpl
only some names as '~login' are assigned to their section name and have the possibility to be called as /folder/folder/~login
;)
-
as mars said.
but you can create folder "~section3" under "folder", put your hfs.diff.tpl there with this content
hi!
and when you'll access /folder/~section3
you'll get "hi!"
-
ok that i have already understand...
but i have ask, because there are then so many folders....
and this is not so good... and you cannot split the main template?
-
"split" is not very clear. i don't understand what you want to do.
consider you can do something like
browser on /folder/?special
and in the template
{.if|{.?special.}|{:{.$nameOfTheSectionWithStuffYouWant.}:}|{:
here goes the normal template
:}.}
-
i will tell you what i want...
i think the main-template-file is too lang, so i ask, if there is a posibility do split the mein tpl, so you have ONE file, which has the main functions like: the main page, error page upload page etc...
andthe a second file ( wich is activated everytime) with your section, other command usw...
i've an idea can you insert somethingin your template with the macro {.load.}???
-
sure.
you can have
[upload]
{.load|upload.tpl.}
-
ok thank zou verz much this is exatlz what i want...;)
-
consider you can do something like
browser on /folder/?special
and in the template
{.if|{.?special.}|{:{.$nameOfTheSectionWithStuffYouWant.}:}|{:
here goes the normal template
:}.}
i have to this solution a question rejetto:
must there be the folder '?special' or can i delet it? so that when you wrote in the url '?special' would be do the action i write down in '{.if|{.?special.}|{:{.ACTION.}:}|{:
here goes the normal template
:}.}'
is that possible?
-
yes, it's possible
?special is not a folder.
it's just in the url, but not a folder.
-
thanks....
-
i have oe more question about the "undersections":
whe you make this:
[error-page]
{.load|error.tpl.}
Must i put it for the reasons an special template to, or can i write the reasons in the error.tpl?
-
the latter, i think.
didn't you just try? :P