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
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
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