Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to export a global template for use in another instance of Confluence?

Sarah Jacob March 1, 2012

Is there a way to export a global template for use in another instance of Confluence?

2 answers

2 votes
Andrew Frayling
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2012

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.

1 vote
Leo Diaz - Deiser
Community Champion
May 27, 2015

Hi Sarah!

Template Ops is intended to solve this problem.  https://marketplace.atlassian.com/plugins/com.deiser.confluence.template-ops

Leo

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events