rejetto forum
Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: maverick on November 12, 2008, 04:06:47 PM
-
Testing build #207 « on: October 13, 2008, 10:17:02 PM »
what's new
+ new template macros: account linked, move, copy, current downloads by user, disconnection reason
Of the new template macros shown above, can you give examples of how you would use move & copy? Also where to put coding into template.
1. I would imagine the move would be to move file(s) from one folder to another
2. Copy to copy a file but it seems to me there should also be a paste otherwise what would you do with it after you copy it? edit: I see - copy file to new location but also keep original where it was. :)
-
Of the new template macros shown above, can you give examples of how you would use move & copy? Also where to put coding into template.
These two macro are to be used of preferences in hfs events, if for example a file does not correspond to a criterion, it is then possible to move it in another directory, but it is not an action easy to implement from a browser
This is regrettably valid for many other macro
-
These two macro are to be used of preferences in hfs events, if for example a file does not correspond to a criterion, it is then possible to move it in another directory, but it is not an action easy to implement from a browser
Then why are they called "template macros"?
A true move and/or copy/paste function would be helpful to the administrator. We already have delete available.
-
they are the same as the 'move' and 'copy' commands you have in windows command line.
{.move|C:\autoexec.bat|C:\windows\temp\.}
-
Would it be possible to insert a parameter into a macro
by using a form?
Using {.add folder | insert path via form | insert folder name via form .} ?
Then on button click a folder is named and added ?
Same with move or copy/paste.
-
they are the same as the 'move' and 'copy' commands you have in windows command line.
Thanks. Tested and works OK. Wildcards are also acceptable.
-
Would it be possible to insert a parameter into a macro
by using a form?
yes.
for normal forms use {.?nameOfTheField.}
for method=post use {.postvar|namOfTheField.}
-
for normal forms use {.?nameOfTheField.}
for method=post use {.postvar|namOfTheField.}
Thanks ! I'm not a programer, but I'll look for examples.
Maybe I can get it to work. Would be very useful. :)