[All Adaptavist Apps]

Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

{list-spaces} macro

(info) Requires Theme Builder 3 or above

This macro allows you to generate an unordered list of spaces which may be used in conjunction with the wikimenu macro within a menu.

(warning) page under construction - see wiki notation guide (when editing a page using wiki markup mode) for more info

Parameter

Mandatory

Default

Notes

Builder
Version

default

(error)

all

What kind of spaces should be listed:

  • all – all spaces will be listed
  • global – only global spaces will be listed
  • personal – only personal spaces will be listed

 

teams

(error)

 

Optionally filter the spaces listed to a specific "team label"

 

reverse

(error)

false

Optionally reverse the order of the list:

  • false – sort ascending A-Z
  • true – sort descending Z-A

 

count

(error)

 

By default all matching spaces will be listed, however you can use this parameter to restrict the number of spaces listed. Example: 10 would limit the list to 10 spaces, even if there were more.

 

start

(error)

0

Start the list from the specified offset, useful when used in conjunction with the "count" parameter.

 

{list-spaces}

{list-spaces:global}

Hints and Tips

You can use this macro to create menus of spaces

{menubar}
 {menu}Spaces
 {wikimenu}{list-spaces}{wikimenu}
 {menu}
{menubar}
Unknown macro: {menubar}
Unknown macro: {menu}

Spaces

Unknown macro: {wikimenu} Unable to render content due to system error: java.lang.ClassCastException: class com.adaptavist.confluence.theme.engine.macros.tools.ListSpacesMacro cannot be cast to class com.atlassian.renderer.v2.macro.Macro (com.adaptavist.confluence.theme.engine.macros.tools.ListSpacesMacro is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @5989a535; com.atlassian.renderer.v2.macro.Macro is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @5a021cb9)
  • No labels