Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Copy current page macro in Confluence - how to?

Hi All,

we need a macro that copies the current page. We'd put it in a page template.hence we are not acquinted with macro scripting, could you please give us some hints?

Thanks in advance,


1 answer

0 votes
Davin Studer Community Leader Aug 26, 2014

On every page there is a link in the tools menu to copy the page. Is there some reason you don't want to use that?

Hi Davin,

you're right, we just want to make it more handable.

You could put something like this into your page decorator in the spot where you would want it to be more accessible.

<script type="text/javascript">
            window.location.href = AJS.Meta.get('base-url') + '/pages/copypage.action?idOfPageToCopy=' + AJS.Meta.get('page-id') + '&spaceKey=' + AJS.Meta.get('space-key');
<form class="aui">
    <button id="myCopyPageButton" class="aui-button">Copy Page</button>



Like Hartmut Leister likes this
Steven Behnke Community Leader Aug 27, 2014

I'm saving this bit of code!

Hi Davin,

many thanks!! +1 question: where is the page decorator you mention?

Davin Studer Community Leader Sep 14, 2020

You can edit the page layouts in Confluence Administration -> Look & Feel -> Layouts.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

26 views 0 2
Read article

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