I am trying to setup a series of templates for users to fill in with Confluence (ondemand).
I want to be able to trigger the creation of a new sub page based on a specific template so that the user can simply click "New XXX" on an existing page and create a new page based on the appropriate template.
Robin, I think you can. You just have to catch the URL of the create page of the targeted template and display it on the page you want. The URL will be something like this:
With that you will be able to create a link to point the user directly to the creation page from that template.
I always get a 404 as soon, as I append parameters to the action. Are you sure, it works that way? I investigated some time on this a few days ago, and it only worked without template.
e.g. I try:
(The ids are correct)
This doesn't work for me. When I try to capture it by creating via the + icon, it goes to one URL and quickly redirects to a new URL. I'm unable to capture the first one. The second one looks like this:
That obviously doesn't work due to the draftId. I tried removing that, and it still does not work properly. It goes to a page that says "Something has gone wrong" then redirects to the new page creator.
No idea if this still is an issue for you but I think I've found an answer: if you remove the last part of the link, starting with "&fromPageId=" than I get a working link in my spaces. Additionally it appears that you can also delete "&title" and "&newSpaceKey". The "templateId" and "&spaceKey=..." seem to be needed to keep the link working. Kinda makes sense, not knowing the template ID nor the space to create the new page in will make it hard to create a page
@Christine CThank you for the tip. This is useful.
In my case, I need to enable users to create a page for a link if the page doesn't exist. Once the page is created (based on the right template), the ability to create the page is no longer necessary. Users may try and create a page that already exists, find the error and go back, or maybe change the title and create duplicates.
Can the macro be somehow disabled once the page has been created?
When creating a link, it's possible to link to an undefined page. See https://confluence.atlassian.com/confcloud/insert-links-and-anchors-724764900.html#InsertLinksandAnchors-Linktoanundefinedpage(apagethatdoesnotexistyet)undefinedpages However, I don't see an option to use a template with that link. That would be a really useful feature
@Christine C can you show how to do this from a global template used across 2 or more spaces?
By this I mean have a from a base page in a project space created from a global template have a macro button on the page to trigger the creation of child page using a second global template (and so on).
eg. We have many projects, each project has a space, they all use the a common set of templates. Each template has a series of "create page from template macro" buttons on them. This helps people keep the project structure easily.
Currently I cannot create a series of global template, available to all spaces, that enables these buttons to exist.
Wherever you are in your team’s journey , our goal is to support your big ambitions. We’re a cloud-first company with the mission of unleashing the potential of every team, and to address the range ...
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