How to Create a User Macro to Create Spaces

Still need help?

The Atlassian Community is here for you.

Ask the community

There is a simple way to create your own macro to create a new space - just like the {create-space-button}. You can simply follow the below steps in order to have the ability to create spaces from pages:

  1. Go to Browse > Confluence Admin > User Macros
  2. Click on Create a User Macro
  3. Fill the fields as follows:
  • Macro Name: createspace
  • Macro Title: createspace
  • Template:

    <a id="create-new-space-link" class="fontSizeDefault" href="/spaces/createspace-start.action">
    <img src="/images/icons/add_space_32.gif" align='absmiddle' height="32" width="32"></a>
    <br />

    4. Click on Save
    5. To test, create a new page and test this new macro you have created by typing {createspace} or selecting it from the Macro Browser.

Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.