Spaces List Macro

Still need help?

The Atlassian Community is here for you.

Ask the community

Use the Spaces List macro to display a list of spaces on a page.

Using the Spaces List macro

To add the Spaces List macro to a page:

  1. In the Confluence editor, choose Insert > Other Macros
  2. Find and select the required macro

Speeding up macro entry with autocomplete: Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Autocomplete for links, files, macros and mentions.

To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.

Parameters

Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).

Parameter

Required?

Default

Description

Scope of spaces

no

all

The view from which spaces are listed. Available options are:

  • (blank) - All spaces in your site, with tabs.
  • all – All spaces in your Confluence site.
  • category – Spaces grouped according to space categories.
  • favourite – Spaces which you have added to My Spaces.
  • new – spaces created within the last 7 days.

This parameter is unnamed in wiki markup and storage format.

Width of List
(width

no

100%

The width of the spaces list, specified as a percentage (%) of the window width.

Code examples

The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page. 

Macro name: spaces

Macro body: None.

Storage format example

  <ac:structured-macro ac:name="spaces">
    <ac:parameter ac:name="width">80%</ac:parameter>
    <ac:parameter ac:name="">favourite</ac:parameter>
  </ac:structured-macro>

Wiki markup example

{spaces:favourite|width=80%}
Last modified on Dec 2, 2015

Was this helpful?

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