rejetto forum

undersection

kaler · 13 · 11086

0 Members and 1 Guest are viewing this topic.

Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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...


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
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
 ;)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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!"


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
"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
:}.}


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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.}???


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
sure.
you can have

[upload]
{.load|upload.tpl.}


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
ok thank zou verz much this is exatlz what i want...;)


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
yes, it's possible
?special is not a folder.
it's just in the url, but not a folder.



Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
the latter, i think.
didn't you just try? :P