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()

--
Best regards
Eugen Colesnicov



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Create-a-new-page-from-a-velocity-macro-tp7583279p7583280.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to