I am trying to make a blueprint that lets users create multiple pages. I understood this should be possible.
I have followed the blueprint tutorials in the developer guide and looked at the hello-blueprint example.
I manage to create on page but never more. from my plugins.xml:
<!-- Top level Blueprint -->
<blueprint key="my-blueprint" index-key="my-index" >
<blueprint key="my-blueprint-child" content-template-key="simplebp-template-child" index-key="my- index-child" >
<!-- Template for Blueprint -->
<content-template key="simplebp-template" template-title-key="my.blueprint.title">
<resource name="template" type="download" location="/templates/testTemplate.xml" />
<content-template key="simplebp-template-child" template-title-key="my.blueprint.child.title">
<resource name="template" type="download" location="/templates/testTemplateA.xml" />
the top level blueprint and the child templates are identical.
BTW this is first meeting with atlassian development, so if anyone can point me to material for better understanding of what I am working with i would be grateful. for example the definitions of the ml elements.
Have you managed to create the child pages?
In the <blueprint> Data model , there is no <children> tag allowed. Where did you find this child definition inside a blueprint ?
I don't think it is possible to create such multiple pages from a page template. It is now possible in Confluence 5.3 for Space Blueprint (see https://developer.atlassian.com/display/CONFDEV/Space+Blueprints)
<blueprint key="my-blueprint" index-key="my-index" > <content-template ref="simplebp-template"> <content-template ref="simplebp-template-child"/> </content-template> </blueprint>
Try this instead. Don't believe there's a concept of nested <blueprint> tags or <children> tags.
Does anyone know what is wrong with this?
<space-blueprint key="example-space-blueprint" i18n-name-key="confluence.blueprints.space.example.name">
<content-template ref="example-child-a-content-template"> <!-- Main Page -->
Our Page Tree Creator can do your job without any programming.
Marketplace User review for our Page Tree Creator:
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.
Give it a try: Marketplace link Page Tree Creator
More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...
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!
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