2015-01-30 17:18 GMT+01:00 [email protected] <[email protected]>:
On 30 Jan 2015 at 16:50:35, Jamal ([email protected](mailto: [email protected])) 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#HForde...
- 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Delhumeau ([email protected]) Research & Development Engineer at XWiki SAS Committer on the XWiki.org project