Is there a way to export a global template for use in another instance of Confluence?
Hi Sarah,
There's no way to export a template that I know of, but you could log in as an administrator and select Browse -> Confluence Admin -> Global Templates then edit the template you want to use in the other instance and copy and paste the markup into a new GLobal Template in the new instance.
If you're not an administrator of the instance you want to export from you could create a new temporary page using the template you wish to export and select Tools -> View Wiki Markup (Confluence 3.x) or Tools -> View Storage Format (Confluence 4.x) to see how the template is made up and copy an paste that into a new GLobal Template in the new instance. If the source instance is 3.x it's easier as templates use old wiki markup rather than the new XHTML format, if the source instance is 4.x it's a bit trickier as although the stoarge format is XHTML templates still use old wiki markup so you'd need to convert the XHTML to wiki markup, e.g. if a template in 4.x has the following XHTML when you view storage format:
<ac:macro ac:name="info"> <ac:parameter ac:name="title">My Title</ac:parameter> <ac:rich-text-body> <p>Some Text in the Info Box</p> </ac:rich-text-body> </ac:macro>
The that would be the following in wiki markup:
{info:title=My Title} Some Text in the Info Box {info}
Finally, if you want to create templates that can be installed on multiple instances of Confluence you could create a Template Bundle plugin. A tutorial on how to create these is available at https://developer.atlassian.com/display/CONFDEV/Creating+A+Template+Bundle
Hope that helps?
Andrew.
Hi Sarah!
Template Ops is intended to solve this problem. https://marketplace.atlassian.com/plugins/com.deiser.confluence.template-ops
Leo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.