Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create blank pages with names in tree structure when space is created

Alok Juneja
Contributor
May 6, 2021

Hi,

I have made the space blueprint. Which works like charm. I want that whenever I create a confluence workspace, empty blank pages with only their headings are created so that I can have a tree structure. Any idea how to achieve this.

 

Help / suggestion would be highly appreciated.

 

BR

Alok

1 answer

1 accepted

0 votes
Answer accepted
Dominic Lagger
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.
May 6, 2021

Hi @Alok Juneja 

What do you mean by space blueprint? 

Did you do this: Write a simple confluence space blueprint ?

If yes, there you should be able to change the blueprint with empty pages.

If no, there is no good option to achieve your goal without any apps. 

You could use "Space Admin Browser" or "ScriptRunner for Conflunce" to copy a template space.

Regards, Dominic

Alok Juneja
Contributor
May 7, 2021

hi @Dominic Lagger 

I did follow the instructions that are listed in the link that you provided and was able to create the customized home page when I create the workspace. What I was looking for to create empty pages and child pages that are empty so that I can construct the tree structure when space is created.

 

Do you know what classes to use or you have some example code to achieve this.

 

BR

Alok

Dominic Lagger
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.
May 7, 2021

Oh, okay.

I never did this before.

I found a really old question here in the community:

https://community.atlassian.com/t5/Answers-Developer-Questions/Blueprint-with-multiple-child-pages/qaq-p/521282#M115421 

There is a hint in the 3rd comment. Can you try this?
Perhaps it is not up to date, but it can help you to investigate further.

Regards, Dominic

Alok Juneja
Contributor
May 9, 2021

@Dominic LaggerYes it did work. Thanks for pointing me to the right direction.

BR

Alok

Like Dominic Lagger likes this
Alok Juneja
Contributor
May 10, 2021

@Dominic LaggerI am only able to create only one child page. That is very strange.

 <content-template key="homepage" i18n-name-key="confluence.blueprints.space.example.homepage.name">
<description key="confluence.blueprints.space.example.homepage.desc"/>
<resource name="template" type="download" location="/xml/space-home.xml"/>
</content-template>

<content-template key="meetings" i18n-name-key="confluence.blueprints.space.example.meetings.name">
<description key="confluence.blueprints.space.example.meetings.desc"/>
<resource name="template" type="download" location="/xml/page.xml"/>
</content-template>

 <content-template key="decisions" i18n-name-key="confluence.blueprints.space.example.decisions.name">
<description key="confluence.blueprints.space.example.decisions.desc"/>
<resource name="template" type="download" location="/xml/page.xml"/>
</content-template>
<space-blueprint key="space-blueprint" i18n-name-key="confluence.blueprints.space.example.name" category="examples">
<content-template ref="homepage">
<content-template ref="meetings"/>
<content-template ref="decisions"/>
</content-template>
</space-blueprint>

 Any idea why so.

Dominic Lagger
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.
May 10, 2021

I don't know, sorry. I've never did this before...

Alok Juneja
Contributor
May 11, 2021

@Dominic LaggerI was doing some mistake. It is working and I am able to generate multiple child pages.

Like Dominic Lagger likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events