Re: [Developers] copy/clone a Node

2007-02-23 Thread Nico Klasens
Hello Leon, You could do something like this http://mmapps.cvs.sourceforge.net/mmapps/mmapps/mmcommons/src/java/net/sf/mmapps/commons/bridge/CloneUtil.java?revision=1.1&view=markup The cloneNodeField method is a mmbase 1.7 version. A 1.8 version would be something like public static void cl

Re: [Developers] copy/clone a Node

2007-02-23 Thread Michiel Meeuwissen
Schaeps, Leon wrote: > Is there a default function I can use to copy a Node with all its fieldvalues. No. > Or is the best way to create a new node and loop the fields of the source > node and copy the values into the fields of the new node? I think so. Michiel -- Michiel Meeuwissen

[Developers] copy/clone a Node

2007-02-23 Thread Schaeps, Leon
Hello, I want to create a function to copy a node in the Editors. Is there a default function I can use to copy a Node with all its fieldvalues. Or is the best way to create a new node and loop the fields of the source node and copy the values into the fields of the new node? Kind Regard