Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I programmatically define the hierarchy of a space blueprint

Roxanne Courchesne November 26, 2015

I'm writing a space blueprint module where the page hierarchy that it create is defined by user input on the wizard. I can't find any information on how to achieve this, all the documentation I've seen create a static hierarchy from nested <content-template> tags in the <space-blueprint> tag. 

Is it possible to provide this <content-template> structure programmatically?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Roxanne Courchesne November 27, 2015

For example, in this module descriptor from https://developer.atlassian.com/confdev/confluence-plugin-guide/confluence-plugin-module-types/space-blueprint-module <space-blueprint key="my-space-blueprint" i18n-name-key="confluence.hello.space.blueprint.name"> <content-template ref="hierarchy-blueprint-content-template"> <content-template ref="hierarchy-child-a-content-template"/> <content-template ref="hierarchy-child-b-content-template"/> </content-template> <dialog-wizard key="my-space-blueprint-wizard"> <dialog-page id="spaceBasicDetailsId" template-key="Confluence.Templates.Blueprints.CreateSpace.createSpaceForm" title-key="confluence.hello.blueprint.dialog.choose.title" description-header-key="confluence.hello.blueprint.dialog.choose.heading" description-content-key="confluence.hello.blueprint.dialog.choose.description"/> </dialog-wizard> </space-blueprint> The 3 <content-template> define a structure of one page with 2 child pages nested below. I do not know in advance what the structure will be, that is known only at run-time during the wizard. Using the Space Blueprint API, can I provide this structure at run-time?

0 votes
Steven F Behnke
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.
November 26, 2015

Can I ask what you mean by "Is it possible to provide this <content-template> structure programmatically"?

TAGS
AUG Leaders

Atlassian Community Events