Hi Sergiu
Thank you very much for your response.
I've tried what you suggested earlier but it is still updating the modified
by and date.
Here's the code if you can spot anything wrong:
{{velocity}}
#set($web = "Sandbox")
#foreach($page in $xwiki.searchDocuments("doc.space = '$web' order by
doc.space, doc.name"))
#set($doc = $xwiki.getDocument("$page"))
* [[$doc]]
$doc.document.setCreator('XWiki.Admin')
#set($milli = $xwiki.parseLong("1274823000000"))
#set($tmpDate = $xwiki.getDate($milli))
$doc.document.setCreationDate($tmpDate)
$doc.document.setAuthor($doc.document.getAuthor())
$doc.document.setDate($doc.document.getDate())
$doc.document.setContentDirty(false)
$doc.save()
#end
{{/velocity}}
Thank you!
Joanna
-----
Joanna
-- Please consider the environment --
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Modify-page-creation-details-without-caus…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.