Magnolia 4.5 reached end of life on June 30, 2016. This branch is no longer supported, see End-of-life policy.
Versioning is an Enterprise Edition feature. Versioning functionality is useful in many instances, for example when you want to display a different version of a page for a defined period, or if you simply decide that you prefer a previous version. Versions are created on activation and de-activation in Website, and on activation only in Documents and Data. Versions are automatically saved and can be reverted to as necessary. By default up to 10 versions are stored, but this number is configurable. See Version configuration.
To access versions:
In the versions dialog:
Compare with current and Compare with previous open the page in the browser and the differences between the versions are highlighted with the redlining feature. Additions are marked in green and deletions in red.
For more information about the redlining feature see the Diff module documentation and watch this video.
Versions are created when the
versions command is triggered. This command is included in the:
activatecommand chain in the
deactivatecommand chain in the
A new version of the content is created and added to the version file.
You will find similar configurations at:
The number of versions stored is configured in
By default the maximum number of versions kept is set to 10. To change this value sign in as a user with access to configuration and set the
maxVersionIndex property to the desired value.
Previous versions created before setting new maximum version index will not be affected until a new version is created. For example, if node ‘A' has 10 versions and you change the max version index to 2, you will still see all 10 versions until the next versioning occurs. Once node 'A' is versioned again, all previous 9 versions will be removed.