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

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

2 answers

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

910 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you