SUMMARY
This package automaticaly removes any previous versions for those times when a version history aren't important, and you don't want to take up the database space.
With Umbraco being such a versatile platform, it's very easy to develop small scale apps that go beyond the regular "Content" paradim. In some situations, version history becomes unimportant, and a waste, so this package automaticaly cleans up any previous versions when a new version is published.
HOW TO USE
The package is configured via an unVersion.config file located in the default umbraco config folder.
To define a new unversion rule, create an add element with the following attributes.
docTypeAlias [Optional] - The doc type alias of the documents to be unversioned, if undefined, applies to all (If you don't define docTypeAlias, it is advised you define rootXpath to narrow down the scope of the unversion).
rootXpath [Optional] - An xpath statment to define the root folder for the unversion rule, ie: //node[@nodeTypeAlias='newsIndex']
maxDays [Optional] - The maximum number of days to keep versions. By default, set to 0 so only draft and live versions are kept.
maxCount [Optional] - The maximum number of latest versions to keep. By default, set to 0 so only draft and live versions are kept.
UPDATE
1.2.0 - Umbraco 4.5 compatable
1.2.1 - Added maxDays attribute
1.2.2 - Added maxCount attriute
1.3 - Umbraco 4.6 (SQL CE 4) compatable
1.4 - Fixed date comparison issue
BUGS & ISSUES
Please raise any issues on the forum below. All feedback is welcome and appreciated.