rejetto forum
May 25, 2012, 02:08:48 PM *
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 [2]
  Print  
Author Topic: templates: 80063r's problem  (Read 2220 times)
0 Members and 2 Guests are viewing this topic.
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #15 on: May 24, 2009, 12:50:49 PM »

Ok, thank you.  So if I understand you correctly, if you want to apply a different template to a virtual folder, you would use "diff.tpl" and for a real folder you would use "hsf.diff.tpl"  So far, I have only used real folders.

NO.
there's a little confusion due to the fact we say "tpl" as short for "template".
he wrote "diff tpl" meaning "diff template", while "hfs.diff.tpl" is the only file name available.

both real and virtual folder let you specify the diff tpl inside the properties.
again, both let you type there a filename (full path) that contains the diff tpl. Like C:\myfile.txt
while real folder have one more way: you can just put a file named "hfs.diff.tpl" inside the folder.
3 ways total.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #16 on: May 24, 2009, 12:52:45 PM »

I new it had to be something stupid on my part.
Thanks Cheesy
I'll be more careful in the future.

then... is it finally working?
Logged
bacter
Operator
Insane poster
*****
Offline Offline

Spain Spain

Posts: 679


View Profile
« Reply #17 on: May 24, 2009, 01:56:50 PM »

I load in [special:begin] a lot of files containing macros without any problem (I also name them mac_xxx.tpl).

The cuestion is only, as special begin is read normaly before the document-header , this files should not do any output in html. Files that produce som html-output should be loaded in the body section!
Logged

your computer has no brain - use your own !
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #18 on: May 25, 2009, 11:47:20 AM »

Quote
I load in [special:begin] a lot of files containing macros without any problem

yes, in [special:begin], we can put even macro as those whom have can use in events, but not something which corresponds to a web page.
Quote
   > and|1|1
   < 1

   > if|1|{:{.load|test.tpl.}:}
   < {.load|test.tpl.}

   > load|test.tpl
   < <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title></title>
  </head>
  <body>

  </body>
</html>
Wink
Logged
Pages: 1 [2]
  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 08, 2012, 04:33:52 AM
anything