It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Create from template macro shall render the new page

Hi everybody,

when I create a page using the "create from template"-macro I would like the macro to be replaced by the link to the new page.

Does anyone know a workaround or macro that leads to this result?

Thank you in advance!

1 answer

0 votes

Hi @Anna Knutsen

do you want to use the macro or do you want to have a button that looks like the macro but would lead to a new page?

If so it would be something like that:

## Macro title: AUI Button
## Macro has a body: N
## @param Title:title=Title|type=string|required=true
## @param URL:title=URL|type=string|required=true
<a href="$paramURL">
<button class="aui-button">
$paramTitle
</button>
</a>

You can put in Create from template as title and the URL to the new page.  

Thanks @Fabienne_Gerhard  for your answer! I would like to have button though, where first a specific template is opened. After the user has filled the template and has saved it as a new page I would like the button to become a link to the new page.

So it shall basically be like the "create from template"-macro, but instead of always opening the template when you click on it, it shall open the newly created page, when the template was used...

Hi @Anna Knutsen

where do you want to put this button at? Because when you put it on your template it would just lead to the page just created (a loop ;) )

Better would be using macro 'Children Display' on main page with create from template macro button

Everytime you create a new page the new link is shown in Children display macro.

@Fabienne_Gerhard I would like to put the button in a table on a parent page where users shall create new content and link a child page. This child page shall be created with a certain template (that's why I came up with the "create from template"-button). After the user has created it, the "create from template"-button shall be replaced by the link of this new page. Just this one child shall be linked, not all of the Children of the page. That's why I think the "Children Display"-makro won't be useful here, will it?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

327 views 9 7
Join discussion

Community Events

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

Events near you