rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: funjay on August 04, 2009, 08:24:26 AM

Title: how can i move a file into a special folder?Ths
Post by: funjay on August 04, 2009, 08:24:26 AM
Hi, i have a question about move, for example, there are many files and B folder in A folder, can i select a file and click a button ,and the result is this file is moved in B folder? thanks.
the files can only be moved into the lower level folder in A folder.
Title: Re: how can i move a file into a special folder?Ths
Post by: funjay on August 08, 2009, 01:41:53 AM
can anyone give me some hints?
thanks.
Title: Re: how can i move a file into a special folder?Ths
Post by: AvvA on August 09, 2009, 02:29:25 PM
Hi :)

This will require that you put your nose in the macros : http://www.rejetto.com/wiki/index.php/HFS:_Template_macros

I suppose that you'll have to add a button in the html template, and define that when clicked it moves all checked files to a predefine folder, or may be best to include also an input field to tell where to move the files.

This will require some HTML knowledge and motivation to learn a bit how macros work, as it's not already coded...

You may also automate the file move, by including a filesize check upon all files in a folder, and above a certain size move the oldest ones in a pre-define folder, in exemple.


Good luck with this ;)
Title: Re: how can i move a file into a special folder?Ths
Post by: funjay on August 11, 2009, 02:44:34 AM
it seems complex for me, but anyway, thank you for your hints.
Title: Re: how can i move a file into a special folder?Ths
Post by: funjay on August 11, 2009, 03:23:54 AM
 
Code: [Select]
{.if|{.get|can delete.}|
   ........................................... // [font=Verdana]what should i write here?[/font]
<input  type='submit' name='obsoletefile' value='Obsolete Files' >
  /if.}

[special:begin]
{.if|{.and| {.get|can delete.} | {.postvar|obsoletefile.} .}|{:
{.move|%item-resource%|%folder-resource%\obsolete\%item-name%.}

:}/if.}

Title: Re: how can i move a file into a special folder?Ths
Post by: rejetto on August 13, 2009, 02:19:59 PM
you want a web button that moves your file?
Title: Re: how can i move a file into a special folder?Ths
Post by: funjay on August 17, 2009, 02:15:32 AM
yes,  :) for example, ther are many files and a folder named "obsolete" in fold A
when i selected one file, and pressed button "obsolete" ,this file would be moved in fold "obselete"
can it be true? thanks.
Title: Re: how can i move a file into a special folder?Ths
Post by: rejetto on August 17, 2009, 11:15:44 AM
yes, it's possible, but it takes time to make it, and at the moment i have very little.
i hope someone else will help you
Title: Re: how can i move a file into a special folder?Ths
Post by: funjay on August 18, 2009, 02:09:17 AM
would the move function be added in to-do list? thanks.
Title: Re: how can i move a file into a special folder?Ths
Post by: rejetto on August 24, 2009, 11:13:22 AM
no, sorry.
personal needs must be solved with "scripts".
the script you need can be already made with current version, there's no need for an upgrade.
Title: Re: how can i move a file into a special folder?Ths
Post by: De-M-oN on September 09, 2009, 05:37:36 PM
Is it also possible to delete files with a button?
To Rename files etc?
Title: Re: how can i move a file into a special folder?Ths
Post by: kaler on September 10, 2009, 07:20:28 AM
jeah its possibe.. PN me.. thanks..


ja es ist möglich schreibe mich einfach an, ich kann so gegen 16 uhr dir antwort geben...