Of course, $showhistory = false is enough because there are a complex token in hyperlink
to restore an old document version!
Thanks you.
________________________________
De : Jeremie BOUSQUET <jeremie.bousquet(a)gmail.com>
À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>fr>; XWiki Users <users(a)xwiki.org>
Envoyé le : Mardi 2 septembre 2014 16h47
Objet : Re: [xwiki-users] Are there a way to deactivate document versioning for all
document in a particular space?
Hello,
See in scripting guide [1] on how to display/hide some sections of the page, including
history.
That doesn't deactivate document versioning though, it would simply remove the history
tab from your sheet so users would not be able to restore older versions.
To completely deactivate versioning see [2]
BR,
Jeremie
[1] -
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HControllingWhi…
[2] -
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HDocument…
2014-09-02 16:40 GMT+02:00 Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>fr>:
Hello,
Are there a way to deactivate document versioning for
all document in a particular space?
I'm writing a piece of Xwiki application: I indicate my XWiki.ClassSheetBinding and
in my sheet document I wanted to forbidden users to use revision tools in new
entries/document (I want to prevent the user to restore an older version).
Thxs
Pascal B
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users