rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: Martok on April 11, 2006, 09:56:19 PM

Title: Template Variables
Post by: Martok on April 11, 2006, 09:56:19 PM
Some of the basic variables in HFS are not supported in the upload pages.
[upload] misses %host% and
[upload-result] misses %up%, %host%, %upload-link%(which I think is not important here)

Is there a special reason for it and could you please add these variables for these pages?
Title: Template Variables
Post by: rejetto on April 11, 2006, 10:13:09 PM
could you tell me how would you use them?
Title: Template Variables
Post by: Martok on April 11, 2006, 10:27:15 PM
Quote from: "rejetto"
could you tell me how would you use them?
I have a page header which always has this layout:
Code: [Select]
<table width="100%" class=table_head>
  <tr style="border-style: none; border-width: medium; font-family:Courier New; font-size:10pt; text-align:left">
    <td width="135" style="text-indent: 4; margin: 0" valign="top">%up%</td>
    <td width="413" style="text-align:center" valign="top">%host%%folder%<br>%folder-comment%</td>
    <td width="30" valign="top">&nbsp;</td>
    <td width="30" valign="top"><a href="/">Home</a></td>
    <td width="69" valign="top">%login-link%%loggedin%</td>
  </tr>
  </table>

But instead of showing the up link, I always get "%up%" shown. The same with the %host%%folder%: it is translated as %host%/Uploads/, which looks quiete weird.
Title: Template Variables
Post by: rejetto on April 11, 2006, 10:50:33 PM
ok, i will add %up% and %host%
but consider not using %host%, you can use relative URLs... indeed i don't use %host% in the default tpl
Title: Template Variables
Post by: Martok on April 11, 2006, 10:55:07 PM
Quote from: "rejetto"
ok, i will add %up% and %host%
but consider not using %host%, you can use relative URLs... indeed i don't use %host% in the default tpl

Thank you very much!
I dont use %host% for linking, it is just a banner to show people where they are.
Title: Template Variables
Post by: ~GeeS~ on April 12, 2006, 05:13:32 PM
Thx, this is exactly what i needed, too! :)