21 Jan
2009
21 Jan
'09
5:22 p.m.
Tronicek wrote:
Is there a way to purge document revisions using Velocity or Groovy?
Someone can see actual and last revision by: ${doc.getVersion()}<br> ${doc.getPreviousDocument().getVersion()}<br>
The next is deleting the document with all revisions... Don't try to purge with(!): ${doc.getPreviousDocument().delete()}
There's: $xwiki.getDocument('Some.Document').getDocument().resetArchive($context.context) But this requires programming rights. -- Sergiu Dumitriu http://purl.org/net/sergiu/