Thanks, Means i should add a method to the wrapper API like : $doc.customSave() ? So i need to download dependencies, build and deploy and compile my own jar ? I want to stay in XWIKI standards and be able to upgrade when i want to ... 2014-05-26 16:12 GMT+01:00 Sergiu Dumitriu <sergiu@xwiki.com>:
On 05/26/2014 08:47 AM, Jeremie BOUSQUET wrote:
Hi,
Prior to saving, you can :
$doc.getDocument().setMetaDataDirty(false) $doc.getDocument().setContentDirty(false)
But this requires programming rights, so it won't work for normal users. The best place to do this is in Java.
You shouldn't save a document in contentview.vm (or any view mode).
Hope this helps, Jeremie
2014-05-26 13:42 GMT+02:00 walid yaich <walid.yaich@gmail.com>:
Hi,
I added $doc.save() in contentview.vm to save the object added to my doc, this save increment the revision.
is it possible to tell the save to not increment the version ?
Thanks in advance :) _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Sergiu Dumitriu http://purl.org/net/sergiu _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs