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,
Rumi
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?
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"> AJS.toInit(function(){ AJS.$('#myCopyPageButton').click(function(event){ event.preventDefault(); window.location.href = AJS.Meta.get('base-url') + '/pages/copypage.action?idOfPageToCopy=' + AJS.Meta.get('page-id') + '&spaceKey=' + AJS.Meta.get('space-key'); }); }); </script> <form class="aui"> <button id="myCopyPageButton" class="aui-button">Copy Page</button> </form>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm saving this bit of code!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can edit the page layouts in Confluence Administration -> Look & Feel -> Layouts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.