rejetto forum

move and copy

0 Members and 1 Guest are viewing this topic.

Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
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.  :)
« Last Edit: November 12, 2008, 07:26:38 PM by maverick »
maverick


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
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


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
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.
« Last Edit: November 13, 2008, 05:32:51 AM by maverick »
maverick


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
they are the same as the 'move' and 'copy' commands you have in windows command line.

{.move|C:\autoexec.bat|C:\windows\temp\.}


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
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.


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
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.
maverick


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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.}


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
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. :)