rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: maverick on November 12, 2008, 04:06:47 PM

Title: move and copy
Post by: maverick on November 12, 2008, 04:06:47 PM
Quote
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.  :)
Title: move and copy
Post by: Mars on November 12, 2008, 04:55:32 PM
Quote
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
Title: move and copy
Post by: maverick on November 12, 2008, 06:50:38 PM
Quote
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.
Title: move and copy
Post by: rejetto on November 12, 2008, 06:53:15 PM
they are the same as the 'move' and 'copy' commands you have in windows command line.

{.move|C:\autoexec.bat|C:\windows\temp\.}
Title: Re: move and copy
Post by: r][m on November 12, 2008, 07:11:40 PM
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.
Title: Re: move and copy
Post by: maverick on November 12, 2008, 07:18:48 PM
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.
Title: Re: move and copy
Post by: rejetto on November 12, 2008, 07:35:07 PM
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.}
Title: Re: move and copy
Post by: r][m on November 12, 2008, 08:50:04 PM
Quote
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. :)