cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript API - get/set document version

stebans
Champ in-the-making
Champ in-the-making
Hi,

surprisingly enough, I don't know how to access a document version from Javascript.
I was expecting something like
document.properties.versionor document.properties["cm:version"]‍‍
, but version doesn't follow the rule!
Also, what is the way to modify the version. For instance, I want to transform a MSWord to PDF, and I would like the PDF to be in sync with the .doc version.

Thanks in advance,
Best regards,
Stephane
2 REPLIES 2

alexander
Champ in-the-making
Champ in-the-making
I think property is called "versionLabel".

You can browse properties using NodeBrowser from admin menu or look at contentModel.xml.

stebans
Champ in-the-making
Champ in-the-making
Of course, I passed by the versionLabel property without seeing it…

Thanks a lot for your very quick answer.
stephane