To answer your "how to create a new document" query, I present a snippet of Groovy:
newDoc = xwiki.getDocument(spaceName, newTitle)
newDoc.doc.setContent(newContent)
newDoc.doc.setAuthor(authorName)
newDoc.doc.setCreationDate(createdTime)
newDoc.doc.setDate(modifiedTime)
newDoc.saveDocument()
- - -
Hans Gerwitz
On Nov 7, 2005, at 1:42 AM, Youcef BEY wrote:
Hi all,
I have followed the tutorial for crating a new classe and insert it in a new
document, but it not work! This is the link that I have followed to do that
:
Other question:
How to create by groovy or velocity a new document and put text in it's
content.
(like I give the name of document in edit area and after that I click a
button, this will be create for me a new document with the given name of
document)
All my thanks in advance
----------------------------------------------------------------------------
-------------
Youcef
--