14 Jan
2013
14 Jan
'13
8:07 a.m.
On 2013-01-14 15:43 , Eugen Colesnicov - [email protected] wrote:
xwiki.mexon wrote
I want to create a new page in a velocity macro. I know how to create a new object, with something like:
#set($object = $doc.newObject("My.Class")) #set($discard = $doc.save())
But how do I do the same thing for a new page?
#set($newDoc = $xwiki.getDocument('Sandbox.TestPage4')) $newDoc.save()
That easy! Thanks very much.