x First time here? Check out the FAQ
Matt Brailsford started this project on Monday, June 14, 2010 it's current version is 1.4 .

Package Info

Project Owner/Creator

Avatar

Matt Brailsford

1450posts 4678karma

Project Compatibility

No compatible versions have been reported, be the first!

View Details Report Compatibility

Project Information

Project owner:
Matt Brailsford
Created:
Monday, June 14, 2010
Is Stable:
Project is stable
Current version
1.4
License
MIT
Tags
cleanup  version  versioning  remove  delete  v45 
Downloads:
549

Contribute

Group

This package is open for collaboration.
Contact the owner

UnVersion

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.

Package Files

Archived Files

Package discussions

Bugs, Feedback and Suggestions
14 topics, 111 posts
Discuss any issues you might have with the package or any comments and suggestions for future improvements.
3 weeks ago by Hardy Wang