Forums

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

How to apply a template on click of link to the newly created page?

Saurabh Gadkari March 19, 2025

Hello,

We are using confluence cloud. 

I am trying to create a child page applied with a template on click of a link. I added a link to the parent page and here are the values for link and display text

Link: 

https://kibo.atlassian.net/wiki/pages/createpage.action?spaceKey=~5e6154a090b4510cd820c68e&fromPageId=137098231822&fromTemplateId=137102327905
OR
https://kibo.atlassian.net/wiki/pages/createpage.action?spaceKey=~5e6154a090b4510cd820c68e&fromPageId=137167077409&templateId=137167011872

Display Text: 

Create New Incident Report

Everything works fine except the template is not applied to the newly created page. I tried all the variations of parameters like templateId or other suggested variations on forums. I am in doubt now whether is it even possible anymore? The template is listed under user created templates under space settings > templates. The templates can be applied manually after the page is created. I want it to be auto applied as soon as the page is created.

1 answer

1 accepted

2 votes
Answer accepted
Tomislav Tobijas
Community Champion
March 19, 2025

Hey @Saurabh Gadkari ,

I haven't tried using direct links/URL for creating templates (and placing those as hyperlinks on text), but have you maybe checked/tried using create from template macro?

Basically, this creates a button that could create a (child) page using a selected template. 

2025-03-19_12-38-53.png

Cheers,
Tobi

Saurabh Gadkari March 19, 2025

I wasn't aware of this macro and it helped to do exactly what I was trying to achieve. Fortunately it is creating sub-pages to the page where the macro is used which is what I wanted, but just curious, what if I wanted to create the sub-pages some where else?

It does let's you specify the space id (which apparently different than current space - default is current space) but not sure where the pages on that space would be created.

Anyways, your inputs helped achieve what I wanted. Thank you very much!

Like Tomislav Tobijas likes this
Tomislav Tobijas
Community Champion
March 19, 2025

@Saurabh Gadkari yeah - you cannot specify the parent page for this macro. There's an open suggestion for that though: CONFCLOUD-29581: Create from template macro should ask on which location the page will be created 

💡What you could try instead/as an alternative is Smart buttons. With this, you could specify the parent page.

2025-03-19_18-54-37.png

You would probably need to play with this a bit more to see if you can set a dynamic page name or something like that. I haven't used it that much TBO.

Saurabh Gadkari March 21, 2025

Thanks @Tomislav Tobijas thats another tool in the inventory :) But my requirement is addressed with the 1st macro you suggested so I will go with it for now.

Like Tomislav Tobijas likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events