2015-01-30 17:18 GMT+01:00 vincent(a)massol.net <vincent(a)massol.net>et>:
 On 30 Jan 2015 at 16:50:35, Jamal (ramalj(a)gmail.com(mailto:
 ramalj(a)gmail.com)) wrote:
  Thanks Vincent.
 This raises another question: if I create a new template wiki, or turn an
 existing wiki into a template, can I retroactively apply it to an 
 existing
  subwiki? 
 There’s no UI for this but I guess you could script it and use the exposed
 wiki script service to perform the copy.
 I was looking for documentation for that on 
extensions.xwiki.org but
 couldn’t find it.
 @GuillaumeD:
 - question 1: any idea where the doc could be for the various script
 services of the wiki modules?
 
Currently, there is this:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application#HFord…
  - question 2: do we have a script service API to
perform the template copy?
 
Unfortunately no, but you can use WikiTemplateManager#applyTemplate() in a
Groovy script.
 Thanks
 -Vincent
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users
 
--
Guillaume Delhumeau (gdelhumeau(a)xwiki.com)
Research & Development Engineer at XWiki SAS
Committer on the 
XWiki.org project