User Tools

Site Tools


cmd:move

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
cmd:move [2020/06/07 19:26] devacmd:move [2020/06/08 18:26] (current) deva
Line 3: Line 3:
  
 <code> <code>
-move <node id> <new parent id> [<before id>|-1]+move <node id> <new parent id> <before id>
 </code> </code>
  
 If ''node id'' or ''new parent id'' does not exist or if the user does now have permissions to add nodes to the parent or alter the current node then an [[cmd:s_error|error]] is returned. If ''node id'' or ''new parent id'' does not exist or if the user does now have permissions to add nodes to the parent or alter the current node then an [[cmd:s_error|error]] is returned.
  
-The third argument is optional and will, if omitted, default to -1, meaning "insert last". Otherwise the node will be inserted in the child list of the parent, before the ''before id''.+The node will be inserted in the child list of the parent, before the ''before id''. It can be -1, meaning "insert last".
  
 Note: Subscribers of this node which are not subscribing on the new parent will get a [[cmd:s_remove|remove]] command as the result of this change. Note: Subscribers of this node which are not subscribing on the new parent will get a [[cmd:s_remove|remove]] command as the result of this change.
cmd/move.1591550792.txt.gz · Last modified: 2020/06/07 19:26 by deva