I am trying to create a template in Confluence, which upon creation of the page by a user, would automatically be created in the correct parent page. This template would be accessible in the main menu for page creation, but when a user create this template, it would be automatically created in the correct sub-page.
Is there a Macro which enables this? I have tried the "create from template macro" but it does not seem to have the functionality required. The "space-ID" level in this macro is too high for what I am trying to do, I want to link to sub-pages within this space.
The commerical projectdoc Toolbox for Confluence Server allows to define a homepage for pages for a given doctype. A doctype is a page blueprint with some extras (a standard page blueprint or user template would not work). A doctype provides such a homepage by default (this is similar to the index page). If the default homepage does not meet your requirements, the homepage can be selected per space by the use of a space property.
The tip Specify Doctype Homepage shows how this feature works.
Please note that I am an author of the projectdoc Toolbox (which is available on the Atlassian Marketplace), so my views are certainly biased ... :)
This does not meet the requirement you have described, but if the location of the page is less important than the option to find a page from a well-known page, then maybe the index page of a page blueprint would work for your use case?
The first time a blueprint template is used in a space, Confluence creates an index page and adds a shortcut to your sidebar. The index displays a list of pages made with the template, and selected information from your template pages.
The index page can customized. So if it is only relevant that there is a page that lists all pages of a given kind, then this would be the easier option (no third-party add-on required).
There is a way to do this. Using this method you can add a link to any page and specify exactly where you want your new page created.
1. Create the template you want users to use to create a new page.
2. On the content tools/template page copy the URL of this link to a notepad and note down the pageId
3. Locate and open the parent page where you want your users to create child pages/
4. Right click and select 'View page source'
5. Locate and note down the pageId (it should be around line 49).
6. In a notepad create a URL using this syntax: https://yourConfluenceAddress/pages/createpage-entervariables.action?templateId=XXXXXXX&spaceKey=YYYY&newSpaceKey=YYYY&fromPageId=ZZZZZZZZ
7. You can add this URL as a link to any of the pages within your space and it will create the child page under the pre-defined parent. Perfect for a home page with instruction for example.
I'm using the create from template macro on the overview page of a space. I would like to use this URL mentioned by Peter Baschan to make sure the created pages will be created under the pre-defined parent page. Where do I mention this URL exactly? Thank you in advance!
For the URL above you don't have to use the Create from template macro. Once you constructed the URL you can add it as a standard link object anywhere on the page (there is a link icon within your toolbar or navigate to the place where you want your link and press CRTL+K).
I hope that helps.
Yes, that helps! Thank you.
Unfortunately I created a 'dead link'... I took the pageID from the URL, instead of the page source information because in the page source there is nowhere an ID mentioned?
It is quite unfortunate that you can't just select the parent page when editing the create from template macro. That would fix this entire problem :)
You can find the apps on Marketplace and there is also a link to our examples, where you can test the apps easy and fast.
Stephan (CEO of EPS Software Engineering AG, the vendor of the apps)
- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events