rejetto forum

templates: 80063r's problem

80063r · 19 · 4581

0 Members and 1 Guest are viewing this topic.

Offline rejetto

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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
I new it had to be something stupid on my part.
Thanks :D
I'll be more careful in the future.

then... is it finally working?


Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
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!
your computer has no brain - use your own !


Offline Mars

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