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.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

374 views 20 10
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