rejetto forum
May 25, 2012, 09:52:09 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: undersection  (Read 1292 times)
0 Members and 2 Guests are viewing this topic.
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« on: September 03, 2009, 10:21:08 AM »

hello i've a question...

you can make sections like "
Code:
[section1] <html>....</html>
Code:
[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...
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #1 on: September 04, 2009, 09:11:00 AM »

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
 Wink
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #2 on: September 04, 2009, 09:36:03 AM »

as mars said.
but you can create folder "~section3" under "folder", put your hfs.diff.tpl there with this content
Code:
hi!

and when you'll access /folder/~section3
you'll get "hi!"
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #3 on: September 04, 2009, 09:53:25 AM »

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?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #4 on: September 04, 2009, 10:46:06 AM »

"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
:}.}
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #5 on: September 04, 2009, 11:12:30 AM »

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.}???
Logged
rejetto forum
« Reply #5 on: September 04, 2009, 11:12:30 AM »

Do you like this software? Consider even $2
 Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #6 on: September 05, 2009, 10:44:50 AM »

sure.
you can have

[upload]
{.load|upload.tpl.}
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #7 on: September 06, 2009, 02:49:50 AM »

ok thank zou verz much this is exatlz what i want...Wink
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #8 on: September 06, 2009, 02: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?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #9 on: September 06, 2009, 05:34:52 AM »

yes, it's possible
?special is not a folder.
it's just in the url, but not a folder.
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #10 on: September 06, 2009, 05:59:20 AM »

thanks....
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #11 on: September 06, 2009, 10:30:39 AM »

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?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #12 on: September 16, 2009, 05:46:00 AM »

the latter, i think.
didn't you just try? Tongue
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 16, 2012, 01:51:06 AM
anything