rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: bacter on August 22, 2007, 11:23:13 PM

Title: new symbols [user1][user2].. -> %user1% ...
Post by: bacter on August 22, 2007, 11:23:13 PM
I think it would be interesting to have HFS recognize on all pages it creates tree or four nes symbols [userN] to include with %userN%. This would make a lot more easier personalizing the templates, for example to put a header on all(or some) pages, or a sidebar, or a footer etc. I propose to add this on the todo-list.
Title: Re: new symbols [user1][user2].. -> %user1% ...
Post by: Giant Eagle on August 23, 2007, 01:01:59 AM
I propose to add this on the todo-list.

I guess this is what you want? ^^

Quote from: To-Do-list
[NEW] per user diff-tpl (apply both folder and user diff-tpl.s, and let the user decide priority, default:user,folder)
Title: Re: new symbols [user1][user2].. -> %user1% ...
Post by: Foggy on August 23, 2007, 06:40:50 AM
I wouldve posted this in the HFS forum.

Quote from: To-Do-list
[NEW] per user diff-tpl (apply both folder and user diff-tpl.s, and let the user decide priority, default:user,folder)

If what Giant Eagle said is what you want, I think that it is a good idea but I think that there is probably some more important features/issues to deal with at present.
Title: Re: new symbols [user1][user2].. -> %user1% ...
Post by: rejetto on August 24, 2007, 03:07:51 PM
i didn't understand what you are asking
Title: Re: new symbols [user1][user2].. -> %user1% ...
Post by: bacter on August 24, 2007, 06:10:58 PM
I'm working on a template that uses the same header,footer, leftbar on all displayed pages.
The corresponding sections are named in the template USRBLKn  and markes as (m/4) in every section. As this is the same code, I think it would be of interest  the posibility to define sections [USRBLKn] in order to use %USRBLKn% where needed.

Title: Re: new symbols [user1][user2].. -> %user1% ...
Post by: rejetto on August 24, 2007, 06:44:04 PM
i tried to, but i have no time to understand all your template. see if this helps you:
if you write %sym-blablabla% and it will expand with the content of [sym-blablabla]
it may be useful when you have the same text several times in a template, and want to create a shorcut.
Title: Re: new symbols [user1][user2].. -> %user1% ...
Post by: bacter on August 25, 2007, 08:14:34 AM
Many thanks rejetto for your software.
The [Sym-....] - function is exactly what y meaned with [user..] , so no need to change anything. It works fine with [sys-header],[sys-footer] .. etc. I didn't see the existence of that function in the manual and I had tried before with [header] etc. without sym-, thats because 'I was reinventing the wheel'.

Many thanks
Title: Re: new symbols [user1][user2].. -> %user1% ...
Post by: Foggy on August 26, 2007, 09:30:15 AM
I didn't see the existence of that function in the manual
Yeah, when I get around to it im gonna try and update the wiki. Eventually