What if you have a custom node type with custom properties?  Do the
Version's inherit these and if so, how do you access them?
Thanks,
Brett

-----Original Message-----
From: Dave Brosius [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2008 12:16 PM
To: [email protected]
Subject: RE: Changing a Node after creating a version

When you first create a node that is versionable and set properties on
it, you call save on the node. Then the base version of the node has
that property value. From there, everytime you checkout, set properties,
checkin, you get a new version with potentially different properties in
subsequent versions.


-----Original Message-----
From: Katia Santos <[EMAIL PROTECTED]>
Sent: Thursday, April 3, 2008 7:12am
To: [email protected]
Subject: Changing a Node after creating a version

Hello

I have a node with some properties, and i want to make a version of the
node
with that same properties, and after making the version I want to change
the
value of the the properties of  initial node.

Do i have to checkout the node, checkin the node (creating a version)
and
then checkout the node again so I can change the properties?? Is this
the
correct way of doing it?

something like this:

Node node;  // (has a property NAME with the value "Katia")

node.checkout();
node.checkin();
node.checkout();
node.setProperty("NAME","Mary");

I want the version to be with the name Katia and the node to be with the
name Mary.
Maybe I didnt get the version steps right...

Thanks

Katia


Reply via email to