|
kaler
|
 |
« on: September 03, 2009, 10:21:08 AM » |
|
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...
|
|
|
|
|
Logged
|
|
|
|
|
Mars
|
 |
« 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 
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11830
|
 |
« 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 hi!
and when you'll access /folder/~section3 you'll get "hi!"
|
|
|
|
|
Logged
|
|
|
|
|
kaler
|
 |
« 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
 Italy
Posts: 11830
|
 |
« 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
|
 |
« 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
 Italy
Posts: 11830
|
 |
« Reply #6 on: September 05, 2009, 10:44:50 AM » |
|
sure. you can have
[upload] {.load|upload.tpl.}
|
|
|
|
|
Logged
|
|
|
|
|
kaler
|
 |
« Reply #7 on: September 06, 2009, 02:49:50 AM » |
|
ok thank zou verz much this is exatlz what i want... 
|
|
|
|
|
Logged
|
|
|
|
|
kaler
|
 |
« 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
 Italy
Posts: 11830
|
 |
« 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
|
 |
« Reply #10 on: September 06, 2009, 05:59:20 AM » |
|
thanks....
|
|
|
|
|
Logged
|
|
|
|
|
kaler
|
 |
« 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
 Italy
Posts: 11830
|
 |
« Reply #12 on: September 16, 2009, 05:46:00 AM » |
|
the latter, i think. didn't you just try? 
|
|
|
|
|
Logged
|
|
|
|
|