rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: r][m on September 04, 2009, 05:33:36 PM

Title: Questions
Post by: r][m on September 04, 2009, 05:33:36 PM
In wiki sections
http://www.rejetto.com/wiki/index.php/HFS:_Template#How_templates_work
[item-archivable]
HTML for the %item-archivable% symbol

In wiki symbols
http://www.rejetto.com/wiki/index.php/HFS:_Template_symbols
%item-archive%
Expands to the [item-archive] section if the folder is archivable
Sort of cofusing, which is correct, or are they both available?

Also,
In build 207  %linked-accounts% was added, but I don't find it in
wiki symbols section? Forum search didn't help at all.
I assume %linked-accounts% is supposed to return a list of linked
groups or accounts, but for me it only returns what ever is first in
the accounts dialog window ?
Title: Re: Questions
Post by: rejetto on September 04, 2009, 07:49:55 PM
item-archive is the correct form.
it's anyway something old, made before we had the "macros" scripting.
now you can do the same by using {.if.} and {.get|can archive.}


will reply the rest later
Title: Re: Questions
Post by: rejetto on September 05, 2009, 09:52:45 AM
i don't remember what made me think that a %symbol% was better than a {.macro.} for such feature.
i'm quite tempted in switching, but it may happen that i just don't remember the good reason i had (tho i doubt). god knows.

what it does is: telling every group that the current user is member of, even by inheritance. Since it may be more than one, they are separated by ";"

the problem about documentation was that i'm not steadily documenting new symbols, just macros.
but i won't document this, and will mark it as deprecated.
in place of it you'll get a macro command.
i will opt for using the existent {.member of.} that currently must be used specifying the group.
if you won't specify the group, it will TELL you the groups.
the name of the macro is appropriated, IMO.

pros:
the name is much more coherent, since HFS don't express anymore the membership as "account linking",
and we can eventually ask for groups of a specified account instead of being bound to the current one.

sorry for the verbose reply.