rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: kaler on September 03, 2009, 03:21:08 PM

Title: undersection
Post by: kaler on September 03, 2009, 03:21:08 PM
hello i've a question...

you can make sections like "
Code: [Select]
[section1] <html>....</html>
Code: [Select]
[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...
Title: Re: undersection
Post by: Mars on September 04, 2009, 02:11:00 PM
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
 ;)
Title: Re: undersection
Post by: rejetto on September 04, 2009, 02:36:03 PM
as mars said.
but you can create folder "~section3" under "folder", put your hfs.diff.tpl there with this content
Code: [Select]
hi!

and when you'll access /folder/~section3
you'll get "hi!"
Title: Re: undersection
Post by: kaler on September 04, 2009, 02:53:25 PM
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?
Title: Re: undersection
Post by: rejetto on September 04, 2009, 03:46:06 PM
"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
:}.}
Title: Re: undersection
Post by: kaler on September 04, 2009, 04:12:30 PM
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.}???
Title: Re: undersection
Post by: rejetto on September 05, 2009, 03:44:50 PM
sure.
you can have

[upload]
{.load|upload.tpl.}
Title: Re: undersection
Post by: kaler on September 06, 2009, 07:49:50 AM
ok thank zou verz much this is exatlz what i want...;)
Title: Re: undersection
Post by: kaler on September 06, 2009, 07:57:41 AM
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?
Title: Re: undersection
Post by: rejetto on September 06, 2009, 10:34:52 AM
yes, it's possible
?special is not a folder.
it's just in the url, but not a folder.
Title: Re: undersection
Post by: kaler on September 06, 2009, 10:59:20 AM
thanks....
Title: Re: undersection
Post by: kaler on September 06, 2009, 03:30:39 PM
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?
Title: Re: undersection
Post by: rejetto on September 16, 2009, 10:46:00 AM
the latter, i think.
didn't you just try? :P