rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: ZeroKnight on July 29, 2010, 08:27:15 PM

Title: Custom Sections(?) In HTML Template
Post by: ZeroKnight on July 29, 2010, 08:27:15 PM
Hello, I'm new to the rejetto forums ^^
First off, HFS is a great program, I use it extensively and is incredibly convenient for file sharing.

I'm wondering if it's possible, in the HTML Template to declare your own sections (I think that's what they're called)
The parts of the code in the brackets.

Examples:

[logged-in]
[upload]
etc.

When playing around with my template, I tried to declare my own "section", called: "[active-transfers]".
It was supposed to be a button that links to the active transfers page.

But when I inserted: "%active-transfers%" in the same area with "%login%" and "%upload%", instead of making a button, it literally showed "%active-transfers%" as text at the top of the page.
I had to make a separate div and add it that way.

So I was wondering. Can you not declare your own "sections"?

I'm running HFS 2.2f
Browser: Firefox 3.6.8
Title: Re: Custom Sections(?) In HTML Template
Post by: rejetto on July 30, 2010, 01:45:50 PM
you meant to get the content of section [active-transfers] where you typed %active-transfers% ?
with HFS 2.2 to get this effect you have to type %sym-active-transfers%
with HFS 2.3 type {.$active-transfers.}
Title: Re: Custom Sections(?) In HTML Template
Post by: ZeroKnight on July 31, 2010, 12:50:53 AM
Hm...I changed: "%active-transfers%" to: "%sym-active-transfers%", but the same thing happened as before...
:/
Title: Re: Custom Sections(?) In HTML Template
Post by: rejetto on July 31, 2010, 09:38:57 AM
oh, i'm sorry, i missed a thing.
by reading at http://www.rejetto.com/wiki/index.php/HFS:_Template
you can see that also the section must be named [sym-active-transfers] for it to work
Title: Re: Custom Sections(?) In HTML Template
Post by: ZeroKnight on August 01, 2010, 07:18:48 PM
I have no idea how I missed that.
Thank you for your help rejetto, and keep up the excellent work on HFS :D