rejetto forum

Template Variables

Martok · 6 · 4880

0 Members and 1 Guest are viewing this topic.

Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
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?
Cheers,

Martok


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
could you tell me how would you use them?


Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
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.
Cheers,

Martok


Offline rejetto

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


Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
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.
Cheers,

Martok


Offline ~GeeS~

  • Tireless poster
  • ****
    • Posts: 269
  • "The web was made for sharing..."
    • View Profile
Thx, this is exactly what i needed, too! :)
~GeeS~