Multipage Template
Asked by Thomas B:

Hello, I would like to create some sort of template that will spawn a series of child pages. For example, when we develop new software and my users want to create a Confluence Space for documentation on that new software... I want them to be able to click "Create from Template" and the following structure to take place:

* New Software Name
  * Software Specs
  * Software Docs
  * Software Guides
  * Ect.

Is this possible? This is much needed!!

Thank you!


Answers:
author: EPS Software Engineering AG
body: Hi Thomas,

I think our Add-on Page Tree Creator could do your job.

Marketplace Review: *Page Tree Creator is absolutely fantastic. It is simple to use, well documented, and has great functionality. One of our departments has a 20+ page structure that they want in place for each of the companies they track. It took me less than an hour to set up Page Tree Creator such that they can go to a page, enter the name of a new company, click a button and immediately have the entire structure built out for that company. It plugs the company name into every page title to keep pages unique. We maintain a tree of the template pages to use and everything on those pages ends up in the new pages, any text, labels, macros. Very powerful and a huge time savings.*

Check out our **[Live Examples](https://focuspro.eps.ch/display/PEPSMarktExample/Marketplace+Examples)** (no registration needed).

Give it a try: **[Marketplace Link](https://marketplace.atlassian.com/plugins/eps.focuspro.PageTreeCreator/server/overview)**

Regards,  
Stephan

comments: author: Thomas B
body: Hey Stephan,

Thanks for the reply. I reviewed the live examples and user guides and documentation but I need a "free" way of getting this done. We cannot purchase any add-ons at this time. I may go about the free add-on and have to purchase at a later date. At the same time, I don't want to implement this and have to find a new way in the end if the purchase order doesn't go through.


author: Thomas Schlegel
body: Hi Thomas,

what you need is a Space Blueprint. There's a tutorial for creating Space Blueprints here:

<https://developer.atlassian.com/confdev/confluence-plugin-guide/confluence-blueprints/space-blueprints/write-a-simple-confluence-space-blueprint>

comments: author: Thomas B
body: I do not want to create a new space, I want to create a template with a series of pages that are generated within an exisitng space.


author: Thomas Schlegel
body: Sorry, I misunderstood your question.

As far as I know there are just Space Templates and Templates for single pages. There's a plugin for creating page tree templates:

<https://marketplace.atlassian.com/plugins/eps.focuspro.PageTreeCreator/server/overview>

but I didn't tried that. It is only available for self-hosted-instances.

Maybe you can create a "Template Space", create the page hierarchy there and let your people copy the page tree from there to their space. It's not very comfortable, I know, but could be a workaround.


author: Thomas B
body: That's alright, I'm trying to figure out the most efficent work around that can be done... Thank you


author: Nic Brough -Adaptavist-
body: Umm, a "space blueprint" is a blueprint that exists for that space. You can use blueprints to create new spaces, but you can also use them to create sets of pages in the same space repeatedly.

If you belt "create page" on a standard plain Confluence install, you'll be offered some options that look like templates - some of them are actually blueprints, and one of them is very similar to the example stuff they talk about in the tutorial Thomas mentioned.

Have a look through <https://confluence.atlassian.com/conf61/blueprints-877187748.html>


author: Thomas B
body: Ok, so I am looking for the src/main/resources/atlassian-plugin.xml that I edit to add a blueprint and I cannot locate it. Would it be named something else by default?


author: Nic Brough -Adaptavist-
body: The tutorial gives you the content of the atlassian-plugin.xml that you need to put into the xml created by the create plugin script in the SDK.

Ok, after re-reading that, I see I'm making a lot of assumptions that might not be true. The tutorial assumes that you have decided to write a plugin to provide a blueprint for Confluence, and that in order to do that, you've installed the Atlassian SDK for developing add-ons and created a skeleton one (probably using the atlas-create-confluence-plugin script). Is that what you've done?


author: Thomas B
body: Ahh, I have no created any add-ons. I'm on a time crunch to get this done and I just assumed that Atlassian had a way to allow the system to create a main and child pages based on one click by the user. I will have to review that document in further detail and see what the best options are.

* Create a new blueprint
* Create template with an excel attachment - CAN'T DO THIS
* Create a template with many {expand} macros


Tags: confluence-development

questions-for-confluence