AnsweredAssumed Answered

move document

Question asked by ndk on Mar 30, 2009
Latest reply on Mar 31, 2009 by ndk

how can you move a document if you have the id of the document and the path of the destination folder?
I need to move the document in a presentation template.

I've tried with document.move(destination); or things like that…

this is a part of the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">

<script type="text/javascript" src="/alfresco/scripts/webdav.js"></script>
<script type="text/javascript">

function moveDocument(docId, path, folder){

alert(path + '/' + folder); // = test -> OK
alert(docId); // = test -> OK
   **********   DO THE MOVE HERE   **********




<#list (space.children)! as c>

<#list c.parent.children as child>

<a href="#" onClick="javascript:moveDocument('${}', '${child.displayPath}', '${}');" title="Move document to ${}"><b>${}</b></a>



can someone help me?