[xwiki-users] Programmatically create docs
Hi, for a glossar I would like to create documents for each letter automatically. I tried to use #set ($newDoc = $xwiki.createDocument()) However, the var $newDoc will not assigned What is wrong with that? Stefan Bachert __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com
Hi Stefan, stefan bachert wrote:
Hi,
for a glossar I would like to create documents for each letter automatically.
I tried to use #set ($newDoc = $xwiki.createDocument())
However, the var $newDoc will not assigned
{{velocity}} #set ($newDoc = $xwiki.createDocument()) $newDoc.class.getName() {{/velocity}} Displays com.xpn.xwiki.api.Document for me in XE 2.2RC2 and latest XE 2.3 snapshot. Hope this helps, Marius
What is wrong with that?
Stefan Bachert
__________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Feb 17, 2010, at 10:01 PM, stefan bachert wrote:
Hi,
for a glossar I would like to create documents for each letter automatically.
I tried to use #set ($newDoc = $xwiki.createDocument())
However, the var $newDoc will not assigned
What is wrong with that?
#set ($mydoc $xwiki.getDocument("Space.Page")) $mydoc.setContent("content") $mydoc.save() Thanks -Vincent
participants (3)
-
Marius Dumitru Florea -
stefan bachert -
Vincent Massol