This topic is locked

Automated Version Numbering

4/24/2008 10:28:05 AM
PHPRunner General questions
M
mariush author

Hi There, I am currently trying to build an electronic Document Library which will hold various documents in one table, and then different versions of the documents in another table. Depending on if this is a major release or a minor release, I will need to increase the version number by either 1, or .01.
What is the easiest way to get the previous version number for the specific document.
Regards

J
Jane 4/25/2008

Hi,
use Add page: Before process event on the Events tab to select previous number. Then increase it, save in the $_SESSION variable and use this variable as default value on the "Edit as" settings dialog on the Visual Editor tab.