[xwiki-users] Creating a panel for all wikis
Hi, I'd like to create a new panel and place it in the sidebar of every wiki in my wiki farm. Is there a way to automatically make panels that I create for the main wiki available to subwikis, or do I have to manually copy them over? Thanks, Jamal -- View this message in context: http://xwiki.475771.n2.nabble.com/Creating-a-panel-for-all-wikis-tp7593806.h... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Jamal, On 29 Jan 2015 at 17:10:23, Jamal ([email protected](mailto:[email protected])) wrote:
Hi,
I'd like to create a new panel and place it in the sidebar of every wiki in my wiki farm. Is there a way to automatically make panels that I create for the main wiki available to subwikis, or do I have to manually copy them over?
Each wiki manages its own content. You can do this: * Create a template wiki with the panel and when you create a new subwiki, you’ll use that template to initiate the subwiki’s content (it’s the recommended way anyway) * In the Admin, where you specify the list of panels, you can reference a panel located on the main wiki (or any other wiki) using the full reference name. For example: “xwiki:Panels.MyPanel” (this points to the MyPanel page in the Panels space on the main wiki) Thanks -Vincent
Thanks,
Jamal
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? -- View this message in context: http://xwiki.475771.n2.nabble.com/Creating-a-panel-for-all-wikis-tp7593806p7... Sent from the XWiki- Users mailing list archive at Nabble.com.
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? - question 2: do we have a script service API to perform the template copy? Thanks -Vincent
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
Thanks to both of you. I'll give that a try. -- View this message in context: http://xwiki.475771.n2.nabble.com/Creating-a-panel-for-all-wikis-tp7593806p7... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Guillaume "Louis-Marie" Delhumeau -
Jamal -
vincent@massol.net