Monday 10 October 2005 8:35:25 am - 2 replies
Modified on Monday 10 October 2005 8:35:49 am by Clemens T
Bruce Morrison
Monday 10 October 2005 4:26:36 pm
Hi Clemens
Code to accomplish this can be found in kernel/content/action.php around line 199 else if ( $module->isCurrentAction( 'MoveNode' ) )
http://pubsvn.ez.no/websvn/filedetails.php?repname=nextgen&path=%2Ftrunk%2Fkernel%2Fcontent%2Faction.php&rev=13600&sc=1
In the trunk the key line appears to be:
eZContentObjectTreeNodeOperations::move( $nodeID, $selectedNodeID )
Where $nodeID is the node you want to move and $selectedNodeID is the destination.
Much of the preceeding code is checking that the permissions are in place.
The code in 3.6.1 seems to be a bit different in that much of the moving work is actually done in action.php
HTH
CheersBruce
My Blog: http://www.stuffandcontent.com/ Follow me on twitter: http://twitter.com/brucemorrison Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
Clemens T
Wednesday 26 October 2005 2:51:19 pm
Excellent job. Thanks a lot! Worked like a charm :).
You must be logged in to post messages in this topic!