How to set a place to save a new page from template?
Asked by goncalo_ferraz:

A (report) template was created. In the Space, there are a few top pages (categories) where pages must be under (one of them is Reports). I created a button on each of those top pages, directing to its specific template (e.g. Reports). When a new page is created from that specific (report) template, I'd like the page to be saved under Reports instead of loose in the space. Is there a way to specify where to save that new page created with a specific template?


Answers:
author: Nicolai Sibler
body: Hi [@goncalo_ferraz](/t5/user/viewprofilepage/user-id/5058238) , welcome to the Community!

Can you please elaborate on how you created those buttons?

I'm asking because the [Create from Template Macro](https://confluence.atlassian.com/doc/create-from-template-macro-317196995.html) is doing what I understood you like to achieve - have a button to create a page from a specified template. The new page then is a child page of the page with the macro/button.

Kind regards,

Nicolai

comments: author: goncalo_ferraz
body: Hi, [@Nicolai Sibler](/t5/user/viewprofilepage/user-id/2649119). I hope the image below is helpful to illustrate what I mean. There's the default Create button and another one I created on the page, to help my internal clients' experience.

I've used the following string on the button ([https://confluence.company.com/pages/createpage-entervariables.action?templateId=217022465\&spaceKey=UXR](https://confluence.company.com/pages/createpage-entervariables.action?templateId=217022465&spaceKey=UXR)). Maybe there's a way to specify, in the string, where the new page should be placed/saved: as Reports' child.

I've done the same thing on Requests and Projects (side-menu), each one with a different template, hoping the pages would be created as their child. Once I found out it was not working that way, I came to the community! :)

![Confluence-create-page-from-template-as-child.png](https://community.atlassian.com/t5/image/serverpage/image-id/224075i9FCEE08B41B23DDF/image-size/large?v=v2&px=999 "Confluence-create-page-from-template-as-child.png")


author: goncalo_ferraz
body: Hey, [@Nicolai Sibler](/t5/user/viewprofilepage/user-id/2649119)

I found [this](https://community.atlassian.com/t5/Confluence-questions/Create-template-which-creates-page-directly-in-parent-page/qaq-p/827828#M136455:~:text=6.%20In%20a,parent%27s%20page%20Id)!

*syntax: [https://yourConfluenceAddress/pages/createpage-entervariables.action?templateId=XXXXXXX\&spaceKey=YYYY\&newSpaceKey=YYYY\&fromPageId=ZZZZZZZZ](https://yourConfluenceAddress/pages/createpage-entervariables.action?templateId=XXXXXXX&spaceKey=YYYY&newSpaceKey=YYYY&fromPageId=ZZZZZZZZ)*

* *where 'yourConfluenceAddress' = the URL to your system*
* *templateId = the noted templateId*
* *spaceKey = the space you are in (again you can take it from your browser URL)*
* *newSpaceKey = the same space as you are in*
* ***fromPageId** = the noted parent's page Id*

--

I just can't find the PageID for the parent pages, since they're named after their titles. Any clue? Thanks already!


author: goncalo_ferraz
body: AHAAAA, found it in the Page Information. God bless you! \\o


Tags: confluence-server

page

server

template