Hi,
To do this you need to access the priviledged API by using groovy (it's
easier)
xwiki2 = xwiki.xWiki
context2 = context.context
doc2 = new XWikiDocument()
doc.setContent(..)
doc.setFullName(..)
xwiki2.saveDocument(doc, context2)
Ludovic
Youcef BEY a écrit :
Hi all,
Are there are a possibility de create automatically document by Groovy or
Velocity. In fact, I have several document and it will be preferable to
inject these documents by program.
I tried to find in the Xwiki API methods that allow to create documents, but
it seems not existing. This means that each document should be created
manually?
Any help will be appreciated.
Best regards,
----------------------------------------------------------------------------
-------------
Youcef
------------------------------------------------------------------------
--
You receive this message as a subscriber of the xwiki-dev(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
--
Ludovic Dubost
XPertNet:
http://www.xpertnet.fr/
Blog:
http://www.ludovic.org/blog/
XWiki:
http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic